diff options
| author | Christian Cleberg <[email protected]> | 2024-03-29 01:42:38 -0500 |
|---|---|---|
| committer | Christian Cleberg <[email protected]> | 2024-03-29 01:42:38 -0500 |
| commit | 4cd7447aced18a5469feae91886076507c0b9f0e (patch) | |
| tree | a4733d553ce68f64277ffa3a52f800dc58ff72de /theme/templates/post.html | |
| parent | b90b88ff1cb8ade86496fe072edac3cd27fe9463 (diff) | |
| parent | 07c42d3ad17060131e822f5816d2057cd1753b1b (diff) | |
| download | cleberg.net-4cd7447aced18a5469feae91886076507c0b9f0e.tar.gz cleberg.net-4cd7447aced18a5469feae91886076507c0b9f0e.tar.bz2 cleberg.net-4cd7447aced18a5469feae91886076507c0b9f0e.zip | |
merge org branch into main
Diffstat (limited to 'theme/templates/post.html')
| -rw-r--r-- | theme/templates/post.html | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/theme/templates/post.html b/theme/templates/post.html new file mode 100644 index 0000000..d0b76db --- /dev/null +++ b/theme/templates/post.html @@ -0,0 +1,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") }}"><{{ post.date|strftime("%Y-%m-%d %a %H:%M:%S") }}></time> + {% endif %} + </section> + <section> + {{ post.html | safe }} + </section> +</article> +{% endblock %} |
