Premier commit

This commit is contained in:
Florestan Bredow
2025-06-06 08:16:34 +02:00
commit 55c2711042
4 changed files with 143 additions and 0 deletions

28
index.html.j2 Normal file
View File

@@ -0,0 +1,28 @@
<!DOCTYPE html>
<html lang="{{ lang|default("fr") }}">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="css/styles.css">
<title>{{ title }}</title>
</head>
<body>
<h1>{{ title }}</h1>
<p id="intro">{{ presentation }}</p>
{%- set ns = namespace(cur_month="") -%}
{%- for key, page in pages.items()|sort(attribute='1.date', reverse = true) -%}
{%- set month = page.date.strftime('%Y-%m') -%}
{%- if ns.cur_month != month -%}
{%- if ns.cur_month != "" %}
</ul>
{%- endif%}
<h2>{{ month }}</h2>
<ul>
{%- endif -%}
{%- set ns.cur_month = month %}
<li>{{ page.date.strftime('%d')}} : <a href="./pages/{{ key }}.html">{{ page.title }}</a>
{%- endfor %}
</ul>
</body>
</html>