2023-05-24 22:54:51 +02:00
|
|
|
---
|
|
|
|
layout: layouts/parent.njk
|
|
|
|
---
|
2023-05-25 12:48:43 +02:00
|
|
|
<div>
|
|
|
|
{%- if parent -%}
|
|
|
|
<div class="parent">
|
|
|
|
{%- for post in collections.all -%}
|
|
|
|
{%- if post.data.title == parent -%}<a href="{{ post.url }}">{{ post.data.title }}</a>{%- endif -%}
|
|
|
|
{%- endfor -%}
|
|
|
|
</div>
|
|
|
|
{%- endif -%}
|
|
|
|
<main id="skip">
|
|
|
|
<div>
|
|
|
|
{{ content | safe }}
|
|
|
|
</div>
|
|
|
|
</main>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<aside id="more-info">
|
|
|
|
<div class="card">
|
|
|
|
<h2>Sommaire</h2>
|
|
|
|
{{ content | toc | safe }}
|
2023-05-24 22:54:51 +02:00
|
|
|
</div>
|
2023-05-25 12:48:43 +02:00
|
|
|
|
|
|
|
{%- for tag in models -%}
|
|
|
|
<div class="card">
|
|
|
|
<h2>{{ tag }}</h2>
|
|
|
|
<ul>
|
|
|
|
{%- for post in collections[tag] -%}
|
|
|
|
<li><a href="{{ post.url }}">{{ post.data.title }}</a></li>
|
|
|
|
{%- endfor -%}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
{%- endfor -%}
|
|
|
|
</aside>
|