aboutsummaryrefslogtreecommitdiff
path: root/source/layouts/index.njk
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2019-05-16 07:33:06 +0200
committerMitja Felicijan <mitja.felicijan@gmail.com>2019-05-16 07:33:06 +0200
commita5c4da8ea8bce7779bd6105d649cd1a2e67c3bfd (patch)
tree530fbe15bc41ce2210a63f0017d80472113bdc9b /source/layouts/index.njk
parentc0f65f76be3f33fb464d3f75c9b9e0100ea60436 (diff)
downloadmitjafelicijan.com-a5c4da8ea8bce7779bd6105d649cd1a2e67c3bfd.tar.gz
added draft type
Diffstat (limited to 'source/layouts/index.njk')
-rw-r--r--source/layouts/index.njk41
1 files changed, 31 insertions, 10 deletions
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