42 lines
1.2 KiB
HTML
42 lines
1.2 KiB
HTML
{% extends "layout.html" %}
|
|
{% import "macros/layout.html" as layout %}
|
|
{% import "macros/post.html" as post %}
|
|
|
|
{% block title %}
|
|
{% if page.title %}{{ page.title }} - {% endif %}
|
|
{{ config.title }}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<a href="../">« back</a>
|
|
<h1 style="margin: 0;">{{ page.title }}</h1>
|
|
{% 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 }}
|
|
- {{ page.reading_time }} min read
|
|
</small>
|
|
{% endif %}
|
|
|
|
{% if page.extra.toc and page.toc | length %}
|
|
<div class="toc">
|
|
table of contents
|
|
{{ post::render_toc(toc=page.toc) }}
|
|
</div>
|
|
{% endif %}
|
|
|
|
<div id="content">{{ page.content | safe }}</div>
|
|
|
|
<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>
|
|
{% endblock %}
|