summaryrefslogtreecommitdiff
path: root/theme/templates/post.html
blob: 7bded9a77d76844202f8e37987fc7c211c7fb531 (plain)
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
32
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 %}