aboutsummaryrefslogtreecommitdiff
path: root/templates/index.twig
diff options
context:
space:
mode:
Diffstat (limited to 'templates/index.twig')
-rw-r--r--templates/index.twig56
1 files changed, 56 insertions, 0 deletions
diff --git a/templates/index.twig b/templates/index.twig
new file mode 100644
index 0000000..4a0eb00
--- /dev/null
+++ b/templates/index.twig
@@ -0,0 +1,56 @@
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>{{ global.title }}</title>
16 <meta name="author" content="{{ global.author }}">
17 <meta name="description" content="{{ global.description }}">
18
19 <meta property="og:title" content="{{ global.title }}">
20 <meta property="og:description" content="{{ global.description }}">
21 <meta property="og:url" content="{{ global.domain }}">
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 <h2>Notes</h2>
39
40 <ul class="article-list">
41 {% for item in list %}
42 <li>
43 <time datetime="{{ item.date|date("Y, F j") }}">{{ item.date|date("Y, F j") }}</time>
44 <a href="{{ item.slug }}">{{ item.title }}</a>
45 </li>
46 {% endfor %}
47 </ul>
48
49 </main>
50
51 <!-- google analytics -->
52 {{ global.ga }}
53
54 </body>
55
56</html>