aboutsummaryrefslogtreecommitdiff
path: root/theme/templates/post.html
blob: 0a154f981e7eefbff748781d099b9d6b8a41480a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{% extends "base.html" %} {% block subtitle %} {{ post.title }} | {% endblock %}
{% block meta %}
<meta property="og:title" content="{{ post.title }}" />
<meta property="og:url" content="{{ post.url }}" />
{% if post.description is defined %}
<meta property="og:description" content="{{ post.description }}" />
{% elif project_description is defined %}
<meta property="og:description" content="{{ project_description }}" />
{% endif %} {% endblock %} {% block main %}
<p><a href="/">&larr; home</a></p>
<article role="article">
	<section class="post-metadata">
		<h1 class="post__title">{{ post.title }}</h1>
		{% if post.date is defined %}
		<time datetime='{{ post.date|strftime("%Y-%m-%d") }}'
			>&lt;{{ post.date|strftime("%Y-%m-%d %a %H:%M:%S") }}&gt;</time
		>
		{% endif %}
	</section>
	<section>{{ post.html | safe }}</section>
</article>
{% endblock %}