aboutsummaryrefslogtreecommitdiff
path: root/templates/post.twig
blob: 553c76e47c2146eada7de94a1ae0c6aff6d3e447 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<!DOCTYPE html>
<html lang="en">

  <head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">

    <meta name="theme-color" content="#ffffff">
    <meta name="generator" content="https://github.com/mitjafelicijan/staticgen">

    {% include "partials/preconnect.twig" %}

    <title>{{ options.title }}</title>
    <meta name="author" content="{{ global.author }}">
    <meta name="description" content="{{ options.description }}">

    <meta property="og:title" content="{{ options.title }}">
    <meta property="og:description" content="{{ options.description }}">
    <meta property="og:url" content="{{ global.domain }}{{ options.slug }}">

    <meta name="twitter:card" content="summary">
    <meta name="twitter:site" content="{{ global.twitter }}">

    <link rel="alternate" type="application/atom+xml" title="{{ global.author }}'s feed" href="/feed.atom">
    <link rel="stylesheet" href="/static/style.css?v={{ "now"|date("YmdHi") }}">
    <link rel="icon" type="image/png" href="/static/avatar-64x64.png?v={{ "now"|date("YmdHi") }}">

  </head>

  <body>

    <main>

      {% include "partials/navigation.twig" %}

      <article>
        <header>
          <h1>{{ options.title }}</h1>
          <div class="info">
            <time datetime="{{ options.date|date("Y, F j") }}">{{ options.date|date("Y, F j") }}</time>
            <span>by {{ global.author }}</span>
          </div>
        </header>

        {% if options.hide == 'true' %}
        <div class="draft">Draft</div>
        {% endif %}

        {{ content }}

        <div id="replybox"></div>
        <script>
          window.replybox = {
            site: 'm6gBxwQnbM',
          };
        </script>
        <script src="https://cdn.getreplybox.com/js/embed.js"></script>

      </article>

    </main>

    <!-- code highlighting -->
    {{ global.highlight }}

    <!-- google analytics -->
    {{ global.ga }}

  </body>

</html>