blog/templates/post.html

43 lines
1.2 KiB
HTML
Raw Normal View History

2018-08-09 06:53:47 +00:00
{% extends "layout.html" %}
2018-09-22 21:14:11 +00:00
{% import "macros/layout.html" as layout %}
2018-09-22 08:17:41 +00:00
{% import "macros/post.html" as post %}
2018-08-09 06:53:47 +00:00
2018-08-29 22:36:07 +00:00
{% block title %}
{% if page.title %}{{ page.title }} - {% endif %}
{{ config.title }}
{% endblock %}
2018-08-09 06:53:47 +00:00
{% block content %}
2019-03-05 00:04:13 +00:00
<a href="../">&laquo; back</a>
<h1 style="margin: 0;">{{ page.title }}</h1>
2018-08-09 06:53:47 +00:00
{% if page.date or page.author %}
<small style="display: block; margin-bottom: 20px;">
Posted
{% if page.extra.author %}by {{ page.extra.author }}{% endif %}
on {{ page.date }}
2020-02-12 04:42:58 +00:00
- {{ page.reading_time }} min read
2018-08-09 06:53:47 +00:00
</small>
{% endif %}
2018-09-22 08:17:41 +00:00
2020-05-05 04:38:36 +00:00
{% if page.extra.toc and page.toc | length %}
2018-09-22 08:17:41 +00:00
<div class="toc">
2018-10-19 16:10:28 +00:00
table of contents
2020-05-05 04:38:36 +00:00
{{ post::render_toc(toc=page.toc) }}
2018-09-22 08:17:41 +00:00
</div>
{% endif %}
2019-05-06 03:24:50 +00:00
<div id="content">{{ page.content | safe }}</div>
2020-05-05 04:38:36 +00:00
<hr />
<small>
End.
{% if page.taxonomies.tags %}
This post is tagged with:
{% for tag in page.taxonomies.tags %}
{% if loop.index0 > 0 %}, {% endif %}
<a href="/tags/{{ tag }}">{{ tag }}</a>
{% endfor %}
{% endif %}
</small>
2018-08-09 06:53:47 +00:00
{% endblock %}