aboutsummaryrefslogtreecommitdiff
path: root/theme/templates/post.html
blob: fe38bc1c5b0c06005334430bdb33898dee8e8526 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{% 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 %}
<article role="article">
	<section class="post-metadata">
		<h1>{{ 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 %} {% if post.filetags %}
		<p class="tags">
			{% for tag in post.filetags %}
			<span class="tag">{{ tag }}</span>
			{% endfor %}
		</p>
		{% endif %}
	</section>
	<section>{{ post.html | safe }}</section>
	<blockquote><a href="mailto:hello@cleberg.net">Reply via email &rarr;</a></blockquote>
</article>
{% endblock %}