friendenstein/templates/blog-page.html

47 lines
1.2 KiB
HTML
Raw Normal View History

2023-07-04 02:37:44 +02:00
{% extends "base.html" %}
{% block content %}
2023-07-04 02:37:44 +02:00
<div><a href="..">..</a>/<span class="metaData">{{ page.slug }}</span></div>
<time datetime="{{ page.date }}">Published on: <span class="metaData">{{ page.date }}</span></time>
2023-10-03 17:56:08 +02:00
{% if config.extra.author and config.extra.display_author == true %}
<address rel="author">By <span class="metaData">{{config.extra.author}}</span></address>
2023-10-03 17:56:08 +02:00
{% endif %}
2023-07-04 02:37:44 +02:00
<h1>{{ page.title }}</h1>
{% if page.toc and page.extra.toc %}
<h2>Table of contents</h2>
<ul>
{% for h1 in page.toc %}
2023-07-04 02:37:44 +02:00
<li>
<a href="{{ h1.permalink | safe }}">{{ h1.title }}</a>
{% if h1.children %}
2023-07-04 02:37:44 +02:00
<ul>
{% for h2 in h1.children %}
<li>
2023-07-04 02:37:44 +02:00
<a href="{{ h2.permalink | safe }}">{{ h2.title }}</a>
<ul>
2023-07-04 02:37:44 +02:00
{% for h3 in h2.children %}
<li>
2023-07-04 02:37:44 +02:00
<a href="{{ h3.permalink | safe }}">{{ h3.title }}</a>
</li>
2023-07-04 02:37:44 +02:00
{% endfor %}
</ul>
</li>
2023-07-04 02:37:44 +02:00
{% endfor %}
</ul>
{% endif %}
2023-07-04 02:37:44 +02:00
</li>
{% endfor %}
2023-07-04 02:37:44 +02:00
</ul>
{% endif %}
{{ page.content | safe }}
<p class="tagsData">
{% if page.taxonomies.tags %}
{% for tag in page.taxonomies.tags %}
<a href="/tags/{{ tag | slugify }}">&#47;{{ tag }}&#47;</a>
{% endfor %}
{% endif %}
2023-07-04 02:37:44 +02:00
</p>
{% endblock content %}