diff options
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 %} |
