aboutsummaryrefslogtreecommitdiff
path: root/templates/post.twig
diff options
context:
space:
mode:
Diffstat (limited to 'templates/post.twig')
-rw-r--r--templates/post.twig59
1 files changed, 59 insertions, 0 deletions
diff --git a/templates/post.twig b/templates/post.twig
new file mode 100644
index 0000000..bd9fdaa
--- /dev/null
+++ b/templates/post.twig
@@ -0,0 +1,59 @@
1<!DOCTYPE html>
2<html lang="en">
3
4 <head>
5
6 <meta charset="utf-8">
7 <meta name="viewport" content="width=device-width, initial-scale=1.0">
8 <meta http-equiv="X-UA-Compatible" content="ie=edge">
9
10 <meta name="theme-color" content="#ffffff">
11 <meta name="generator" content="https://github.com/mitjafelicijan/staticgen">
12
13 <link rel="preconnect" href="https://www.google-analytics.com">
14
15 <title>{{ options.title }}</title>
16 <meta name="author" content="{{ global.author }}">
17 <meta name="description" content="{{ options.description }}">
18
19 <meta property="og:title" content="{{ options.title }}">
20 <meta property="og:description" content="{{ options.description }}">
21 <meta property="og:url" content="{{ global.domain }}{{ options.slug }}">
22
23 <meta name="twitter:card" content="summary">
24 <meta name="twitter:site" content="{{ global.twitter }}">
25
26 <link rel="alternate" type="application/atom+xml" title="{{ global.author }}'s feed" href="/feed.atom">
27 <link rel="stylesheet" href="/static/style.css?v={{ "now"|date("YmdHi") }}">
28 <link rel="icon" type="image/png" href="/static/avatar-64x64.png?v={{ "now"|date("YmdHi") }}">
29
30 </head>
31
32 <body>
33
34 <main>
35
36 {% include "partials/navigation.twig" %}
37
38 <article>
39 <header>
40 <h1>{{ options.title }}</h1>
41 <div class="info">
42 <time datetime="{{ item.date|date("Y, F j") }}">{{ item.date|date("Y, F j") }}</time>
43 <span>by {{ global.author }}</span>
44 </div>
45 </header>
46 {{ content }}
47 </article>
48
49 </main>
50
51 <!-- code highlighting -->
52 {{ global.highlight }}
53
54 <!-- google analytics -->
55 {{ global.ga }}
56
57 </body>
58
59</html>