erratum/_includes/layouts/base.njk

37 lines
810 B
Text
Raw Normal View History

2023-05-24 22:54:51 +02:00
---
layout: layouts/parent.njk
---
2023-05-27 08:48:03 +02:00
<div id="core">
<main id="skip">
<div>
{{ content | safe }}
</div>
</main>
</div>
2023-05-24 22:54:51 +02:00
<aside id="more-info">
2023-05-30 22:36:10 +02:00
{%- 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 -%}
2023-05-24 22:54:51 +02:00
<div class="card">
<h2>Sommaire</h2>
2023-05-24 22:54:51 +02:00
{{ content | toc | safe }}
</div>
{%- for tag in models -%}
<div class="card">
<h2>{{ tag }}</h2>
<ul>
2023-07-29 15:37:38 +02:00
{%- for post in collections[tag] | sort(false, true, "data.order") -%}
<li><a href="{{ post.url }}">{{ post.data.title }}</a></li>
{%- endfor -%}
</ul>
</div>
{%- endfor -%}
2023-05-24 22:54:51 +02:00
</aside>