frog-website/src/pages/index/news.html

22 lines
583 B
HTML

{% set title = "News" %}
{% set title_image = "/img/section-news.png" %}
{% extends "lib/section.html.j2" %}
{% block content %}
{% for news in glob("news/*.md") | map('markdown') %}
<div class="news">
<div class="news--title">
<h3>{{ news.meta.title }}</h3>
{% with creation_date = news | git_creation_date %}
<div class="news--date">{{ creation_date.strftime('%d/%m/%Y') }}</div>
{% endwith %}
</div>
<div class="news--content">
{{ news }}
</div>
</div>
</div>
{% endfor %}
{% endblock %}