summaryrefslogtreecommitdiff
path: root/templates/blog-post.html
blob: 084435149c13a84e8863249d5c4553840b50f416 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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:00+02:00">
  {% endif %}
  {% if this.updated_date %}
    <meta property="article:modified_time"
          content="{{ this.updated_date }}T00:00:00+02:00">
  {% 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 %}