aboutsummaryrefslogtreecommitdiff
path: root/theme/templates/post.html
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2024-07-28 19:46:20 -0500
committerChristian Cleberg <[email protected]>2024-07-28 19:46:20 -0500
commit5d4a1199b51602f64985982c82de9b7c537583c6 (patch)
tree7ac50f99425c5524c0820360754045b80d1bafcc /theme/templates/post.html
parente86c55dbfad35870e76bd0e69991416f60017512 (diff)
downloadcleberg.net-5d4a1199b51602f64985982c82de9b7c537583c6.tar.gz
cleberg.net-5d4a1199b51602f64985982c82de9b7c537583c6.tar.bz2
cleberg.net-5d4a1199b51602f64985982c82de9b7c537583c6.zip
conversion from Zola to Weblorg
Diffstat (limited to 'theme/templates/post.html')
-rw-r--r--theme/templates/post.html21
1 files changed, 21 insertions, 0 deletions
diff --git a/theme/templates/post.html b/theme/templates/post.html
new file mode 100644
index 0000000..58bdb72
--- /dev/null
+++ b/theme/templates/post.html
@@ -0,0 +1,21 @@
+{% 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 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 %}