anemone/templates/blog-page.html

47 lines
1.2 KiB
HTML
Raw Normal View History

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