blog/templates/post.html

31 lines
841 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 %}
<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 %}
2018-09-22 08:17:41 +00:00
{% if page.toc.children | length %}
<div class="toc">
{{ post::render_toc(toc=page.toc) }}
</div>
{% endif %}
2018-08-09 06:53:47 +00:00
{{ page.content | safe }}
{% if page.extra.link %}
<p>Visit <a href="{{ page.extra.link }}">here</a> for more info.</p>
{% endif %}
{% endblock %}