aboutsummaryrefslogtreecommitdiff
path: root/source/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'source/layouts')
-rw-r--r--source/layouts/draft.njk61
-rw-r--r--source/layouts/footer.njk2
-rw-r--r--source/layouts/index.njk41
-rw-r--r--source/layouts/navigation.njk6
4 files changed, 96 insertions, 14 deletions
diff --git a/source/layouts/draft.njk b/source/layouts/draft.njk
new file mode 100644
index 0000000..72923c9
--- /dev/null
+++ b/source/layouts/draft.njk
@@ -0,0 +1,61 @@
1<!DOCTYPE html>
2<html lang="en">
3
4<head>
5 <meta charset="utf-8">
6 <meta name="viewport" content="width=device-width, initial-scale=1.0">
7 <meta http-equiv="X-UA-Compatible" content="ie=edge">
8 <meta name="theme-color" content="#ffffff">
9
10 <meta name="google-site-verification" content="EwUGW1WlCkRIQuyQ9AE1-bLitWthw-eVMZFTAMZVZaA">
11
12 <link rel="icon" type="image/png" href="{{ vars.domain }}/files/avatar-64x64.png?ver={{ timestamp }}">
13
14 <title>{{ title }}</title>
15 <meta name="author" content="{{ vars.author }}">
16 <meta name="description" content="{{ description }}">
17
18 <meta name="og:url" content="{{ vars.domain }}/{{ slug }}">
19 <meta name="og:type" content="website">
20 <meta name="og:title" content="{{ title }}">
21 <meta name="og:description" content="{{ description }}">
22 <meta name="og:image" content="{{ vars.domain }}/files/avatar-512x512.png?ver={{ timestamp }}">
23
24 <meta name="twitter:card" content="summary">
25 <meta name="twitter:site" content="@mitjafelicijan">
26 <meta name="twitter:title" content="{{ title }}">
27 <meta name="twitter:description" content="{{ description }}">
28 <meta name="twitter:image" content="{{ vars.domain }}/files/avatar-512x512.png?ver={{ timestamp }}">
29
30 {{ css }}
31
32</head>
33
34<body>
35
36 <main class="wrapper">
37
38 {% include "navigation.njk" %}
39
40 <article>
41
42 <header>
43 <h1>{{ title }}</h1>
44 <p class="pubdate">Published on
45 <time pubdate="{{ writtenDate.original }}">{{ writtenDate.formatted }}</time>
46 by {{ vars.author }}</p>
47 </header>
48
49 {{ content|safe }}
50
51 </article>
52
53 {{ javascript }}
54
55 {% include "footer.njk" %}
56
57 </main>
58
59</body>
60
61</html>
diff --git a/source/layouts/footer.njk b/source/layouts/footer.njk
index bbb0775..a8e3aa1 100644
--- a/source/layouts/footer.njk
+++ b/source/layouts/footer.njk
@@ -1,5 +1,5 @@
1<footer> 1<footer>
2 <span>© 2012-{{ currentYear }}</span> 2 <span>© 2010-{{ currentYear }}</span>
3 <a href="/curriculum-vitae">Curriculum Vitae</a> 3 <a href="/curriculum-vitae">Curriculum Vitae</a>
4 <a href="//github.com/mitjafelicijan" target="_blank" rel="noopener nofollow">Github</a> 4 <a href="//github.com/mitjafelicijan" target="_blank" rel="noopener nofollow">Github</a>
5 <a href="//twitter.com/mitjafelicijan" target="_blank" rel="noopener nofollow">Twitter</a> 5 <a href="//twitter.com/mitjafelicijan" target="_blank" rel="noopener nofollow">Twitter</a>
diff --git a/source/layouts/index.njk b/source/layouts/index.njk
index 9784155..c4912a7 100644
--- a/source/layouts/index.njk
+++ b/source/layouts/index.njk
@@ -37,16 +37,37 @@
37 37
38 {% include "navigation.njk" %} 38 {% include "navigation.njk" %}
39 39
40 <nav class="article-list"> 40 <div class="list">
41 {% for post in posts %} 41
42 <article> 42 <h3>Research</h3>
43 <a href="/{{ post.slug }}"> 43 <nav class="article-list">
44 <time pubdate="{{ post.dateOriginal }}" class="pubdate">{{ post.dateFormatted }}</time> 44 {% for post in posts %}
45 <h2>{{ post.title }}</h2> 45 {% if post.type == "research" %}
46 </a> 46 <article>
47 </article> 47 <a href="/{{ post.slug }}" aria-label="Read more about {{ post.title }}">
48 {% endfor %} 48 <time pubdate="{{ post.dateOriginal }}" class="pubdate">{{ post.dateFormatted }}</time>
49 </nav> 49 <h2>{{ post.title }}</h2>
50 </a>
51 </article>
52 {% endif %}
53 {% endfor %}
54 </nav>
55
56 <h3>General</h3>
57 <nav class="article-list">
58 {% for post in posts %}
59 {% if post.type != "research" %}
60 <article>
61 <a href="/{{ post.slug }}" aria-label="Read more about {{ post.title }}">
62 <time pubdate="{{ post.dateOriginal }}" class="pubdate">{{ post.dateFormatted }}</time>
63 <h2>{{ post.title }}</h2>
64 </a>
65 </article>
66 {% endif %}
67 {% endfor %}
68 </nav>
69
70 </div>
50 71
51 {{ javascript }} 72 {{ javascript }}
52 73
diff --git a/source/layouts/navigation.njk b/source/layouts/navigation.njk
index 163c3c7..8814fc1 100644
--- a/source/layouts/navigation.njk
+++ b/source/layouts/navigation.njk
@@ -1,9 +1,9 @@
1<menu> 1<menu>
2 <div> 2 <div>
3 <a href="/" class="logo">@mitjafelicijan</a> 3 <a href="/" class="logo">Mitja Felicijan</a>
4 </div> 4 </div>
5 <nav> 5 <nav>
6 <a href="//github.com/mitjafelicijan"> 6 <a href="//github.com/mitjafelicijan" aria-label="Github">
7 <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" 7 <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
8 viewBox="0 0 92 92" style="enable-background:new 0 0 92 92;" xml:space="preserve"> 8 viewBox="0 0 92 92" style="enable-background:new 0 0 92 92;" xml:space="preserve">
9 <g> 9 <g>
@@ -21,7 +21,7 @@
21 </svg> 21 </svg>
22 </a> 22 </a>
23 23
24 <a href="//twitter.com/mitjafelicijan"> 24 <a href="//twitter.com/mitjafelicijan" aria-label="Twitter">
25 <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" 25 <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
26 viewBox="0 0 612 612" style="enable-background:new 0 0 612 612;" xml:space="preserve"> 26 viewBox="0 0 612 612" style="enable-background:new 0 0 612 612;" xml:space="preserve">
27 <g> 27 <g>