blog/templates/post.html
Michael Zhang dfd6b90ff0
...
2018-10-19 11:10:28 -05:00

29 lines
771 B
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 %}
<h1 style="margin-bottom: 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 }}
</small>
{% endif %}
{% if page.extra.toc and page.toc | length %}
<div class="toc">
table of contents
{{ post::render_toc(toc=page.toc) }}
</div>
{% endif %}
{{ page.content | safe }}
{% endblock %}