blog/templates/post.html

30 lines
813 B
HTML
Raw Normal View History

2018-08-08 23:53:47 -07:00
{% extends "layout.html" %}
2018-09-22 16:14:11 -05:00
{% import "macros/layout.html" as layout %}
2018-09-22 03:17:41 -05:00
{% import "macros/post.html" as post %}
2018-08-08 23:53:47 -07:00
2018-08-29 17:36:07 -05:00
{% block title %}
{% if page.title %}{{ page.title }} - {% endif %}
{{ config.title }}
{% endblock %}
2018-08-08 23:53:47 -07:00
{% block content %}
2019-03-04 18:04:13 -06:00
<a href="../">&laquo; back</a>
<h1 style="margin: 0;">{{ page.title }}</h1>
2018-08-08 23:53:47 -07: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 03:17:41 -05:00
2019-06-29 13:04:30 -05:00
{% if page.extra.toc and toc | length %}
2018-09-22 03:17:41 -05:00
<div class="toc">
2018-10-19 11:10:28 -05:00
table of contents
2019-06-29 13:04:30 -05:00
{{ post::render_toc(toc=toc) }}
2018-09-22 03:17:41 -05:00
</div>
{% endif %}
2019-05-05 22:24:50 -05:00
<div id="content">{{ page.content | safe }}</div>
2018-08-08 23:53:47 -07:00
{% endblock %}