aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2020-03-25 05:12:40 +0100
committerMitja Felicijan <mitja.felicijan@gmail.com>2020-03-25 05:12:40 +0100
commited161e7fb20a697ecba070ef7db4c231d700f245 (patch)
tree5a415f8e758c6b7001ade8003ca2aa26b476b58c /templates
parentfb94d7aef76a5996892ef82938524cb0c2e0d285 (diff)
downloadmitjafelicijan.com-ed161e7fb20a697ecba070ef7db4c231d700f245.tar.gz
Move to my own static generator
Diffstat (limited to 'templates')
-rw-r--r--templates/index.twig56
-rw-r--r--templates/page.twig52
-rw-r--r--templates/partials/navigation.twig6
-rw-r--r--templates/post.twig59
4 files changed, 173 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>
diff --git a/templates/page.twig b/templates/page.twig
new file mode 100644
index 0000000..128e321
--- /dev/null
+++ b/templates/page.twig
@@ -0,0 +1,52 @@
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 </header>
42 {{ content }}
43 </article>
44
45 </main>
46
47 <!-- google analytics -->
48 {{ global.ga }}
49
50 </body>
51
52</html>
diff --git a/templates/partials/navigation.twig b/templates/partials/navigation.twig
new file mode 100644
index 0000000..cff6152
--- /dev/null
+++ b/templates/partials/navigation.twig
@@ -0,0 +1,6 @@
1<nav>
2 <a href="/">Mitja Felicijan</a>
3 <a href="/curriculum-vitae.html">CV</a>
4 <a href="https://twitter.com/mitjafelicijan" target="_blank" rel="noopener nofollow">Twitter</a>
5 <a href="https://github.com/mitjafelicijan" target="_blank" rel="noopener nofollow">Github</a>
6</nav>
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>