This repository has been archived on 2024-04-03. You can view files and clone it, but cannot push or open issues or pull requests.
vault/_includes/layouts/base.njk

41 lines
887 B
Plaintext

---
layout: layouts/parent.njk
---
<div>
<main id="skip">
<div id="titlebar">kazhnuzvault.html</div>
<div id="page">
{{ content | safe }}
</div>
</main>
</div>
<aside id="more-info">
{%- if parent -%}
<div class="card parent">
{%- for post in collections.all -%}
{%- if post.data.title == parent -%}<a href="{{ post.url }}">← {{ post.data.title }}</a>{%- endif -%}
{%- endfor -%}
</div>
{%- endif -%}
<div class="card">
<h2>Sommaire</h2>
{{ content | toc | safe }}
</div>
<div id="links">
{% renderFile "./_includes/websites.md" %}
</div>
{%- 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>