sonicgarden/_includes/layouts/base-subpages.njk

38 lines
1.1 KiB
Text
Raw Permalink Normal View History

2024-01-08 09:00:48 +01:00
---
layout: layouts/parent.njk
---
2024-09-06 14:22:00 +02:00
<main id="skip" class="visible">
2024-01-08 09:00:48 +01:00
<div>
{{ content | safe }}
</div>
</main>
<aside id="more-info">
2024-09-06 14:22:00 +02:00
<div class="card" id="sommaire">
2024-01-08 09:00:48 +01:00
<ol>
{%- for post in collections.all | sort(false, true, "data.eleventySubNavigation.order") -%}
{%- if post.data.eleventyNavigation.key == eleventySubNavigation.parent -%}
<li><a href="{{ post.url }}" style="padding-left:3px;">← {{ post.data.eleventyNavigation.key }}</a></li>
{%- endif -%}
{%- endfor -%}
</ol>
</div>
<div class="card">
<h2>Sommaire</h2>
{{ content | toc | safe }}
</div>
<div class="card">
<h2>Pages sœurs</h2>
<ol>
{%- for post in collections.all | sort(false, true, "data.eleventySubNavigation.order") -%}
{%- if post.data.eleventySubNavigation.parent == eleventySubNavigation.parent -%}
<li><a href="{{ post.url }}">{{ post.data.eleventySubNavigation.key }}</a></li>
{%- endif -%}
{%- endfor -%}
</ol>
</div>
<div id="links">
{% renderFile "./_includes/websites.md" %}
</div>
</aside>