blog/templates/post.html
2018-09-22 16:14:11 -05:00

30 lines
841 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.toc.children | length %}
<div class="toc">
{{ post::render_toc(toc=page.toc) }}
</div>
{% endif %}
{{ page.content | safe }}
{% if page.extra.link %}
<p>Visit <a href="{{ page.extra.link }}">here</a> for more info.</p>
{% endif %}
{% endblock %}