diff options
Diffstat (limited to '')
| -rw-r--r-- | templates/blog-post.html | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/templates/blog-post.html b/templates/blog-post.html new file mode 100644 index 0000000..6ffb600 --- /dev/null +++ b/templates/blog-post.html @@ -0,0 +1,31 @@ +{% extends "base.html" %} + +{% from "macros/blog.html" import render_blog_post %} + +{% block meta %} + {{ super() }} + <meta property="og:type" content="article"> + <meta property="article:author" content="https://dennisfink.me/about"> + {% if this.publication_date %} + <meta property="article:published_time" + content="{{ this.publication_date }}T00:00:00Z"> + {% endif %} + {% if this.updated_date %} + <meta property="article:modified_time" + content="{{ this.updated_date }}T00:00:0Z"> + {% endif %} + {% if this.category %} + {% set category = site.get("/categories/" + this.category) %} + <meta property="article:section" content="{{ category.name }}"> + {% endif %} + {% for t in this.tags %} + <meta property="article:tag" content="{{ t }}"> + {% endfor %} +{% endblock %} +{% block styles %} + {{ super() }} + <link rel="stylesheet" + type="text/css" + href="{{ '/static/css/blog.css'|asseturl }}"> +{% endblock %} +{% block content %}{{ render_blog_post(this) }}{% endblock %} |
