diff options
| author | Philipp Geyer <philipp@geyer.co.uk> | 2022-01-22 14:12:35 +0000 |
|---|---|---|
| committer | Philipp Geyer <philipp@geyer.co.uk> | 2022-01-22 14:12:35 +0000 |
| commit | ba4e78346aac1843890c1a889807b8e60bdf9419 (patch) | |
| tree | 5982ccc113872b20db69005bf8bb2addff492571 /theme/templates/post.html | |
| parent | 93ea64f62c8056a532367600f53f69d4daa79ea3 (diff) | |
Some work on my website - should be looking half decent finally, and have some content
Diffstat (limited to 'theme/templates/post.html')
| -rw-r--r-- | theme/templates/post.html | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/theme/templates/post.html b/theme/templates/post.html new file mode 100644 index 0000000..7bded9a --- /dev/null +++ b/theme/templates/post.html @@ -0,0 +1,33 @@ +{% extends "base.html" %} + +{% 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 %} + {% if post.image is defined %} + <meta property="og:image" content="{{ post.image }}"> + {% elif project_image is defined %} + <meta property="og:image" content="{{ project_image }}"> + {% endif %} + <meta name="twitter:card" content="summary_large_image"> +{% endblock %} + +{% block main %} + <article class="post"> + <h1 class="post__title"> + {{ post.title }} + </h1> + <section class="post__meta"> + {% if post.date is defined %} + {{ post.date|strftime("%b %d, %Y") }} + {% endif %} + </section> + <section> + {{ post.html|safe }} + </section> + </article> +{% endblock %} |
