Premier commit
This commit is contained in:
28
index.html.j2
Normal file
28
index.html.j2
Normal 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>
|
Reference in New Issue
Block a user