aboutsummaryrefslogtreecommitdiff
path: root/theme/templates/post.html
blob: d0b76db98841066a23ed0ffaaa14dbf4df554f48 (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
29
30
{% 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 %}
<link rel="stylesheet" href="/syntax-theme-dark.css" media="(prefers-color-scheme: dark)">
<link rel="stylesheet" href="/syntax-theme-light.css" media="(prefers-color-scheme: light)">
{% endblock %}

{% block main %}
<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 %}