2020-04-12 17:19:05 -04:00

79 lines
2.6 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{% extends "index.html" %}
{% import "post_macros.html" as post_macros %}
{% block title %}{{config.title}} - {{page.title}}{% endblock title %}
{% block content %}
{% if page.toc %}
<div class="post-toc" id="post-toc">
<h2 class="post-toc-title">Contents</h2>
<div class="post-toc-content always-active">
<nav id="TableOfContents">
<ul>
{% for h1 in page.toc %}
<li>
<a href="{{h1.permalink | safe}}" class="toc-link">{{ h1.title }}</a>
{% if h1.children %}
<ul>
{% for h2 in h1.children %}
<li>
<a href="{{h2.permalink | safe}}" class="toc-link">{{ h2.title }}</a>
</li>
{% endfor %}
</ul>
{% endif %}
</li>
{% endfor %}
</ul>
</nav>
</div>
</div>
{% endif %}
<article class="post">
{{ post_macros::title(page=page) }}
<div class="post-content">
{{ page.content | safe }}
</div>
{% block page_before_footer %}
{% endblock page_before_footer %}
<div class="post-footer">
{% block page_footer %}
{% if page.taxonomies.tags %}
<div class="post-tags">
{% for tag in page.taxonomies.tags %}
<a href="{{ get_taxonomy_url(kind="tags", name=tag) }}">#{{ tag }}</a>
{% endfor %}
</div>
{% endif %}
{% if page.earlier or page.later or page.lighter or page.heavier %}
<div class="post-nav">
{% if page.earlier %}
<a class="previous" href="{{ page.earlier.permalink }}"> {{ page.earlier.title }}</a>
{% endif %}
{% if page.later %}
<a class="next" href="{{ page.later.permalink }}">{{ page.later.title }} </a>
{% endif %}
{% if page.lighter %}
<a class="previous" href="{{ page.lighter.permalink }}"> {{ page.lighter.title }}</a>
{% endif %}
{% if page.heavier %}
<a class="next" href="{{ page.heavier.permalink }}">{{ page.heavier.title }} </a>
{% endif %}
</div>
{% endif %}
{% endblock page_footer %}
</div>
{% block page_after_footer %}
{% endblock page_after_footer %}
</article>
{% endblock content %}