blog/templates/post.html

30 lines
799 B
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 }}
</small>
{% endif %}
2018-09-22 08:17:41 +00:00
2018-10-19 16:10:28 +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
2018-09-22 08:17:41 +00:00
{{ post::render_toc(toc=page.toc) }}
</div>
{% endif %}
2018-08-09 06:53:47 +00:00
{{ page.content | safe }}
{% endblock %}