-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathblog.njk
43 lines (42 loc) · 1.24 KB
/
blog.njk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
---
title: Blog
date: '2022-07-30'
status: publish
author: 'Jason Bayton'
excerpt: ''
type: archive
layout: base.njk
tags:
---
{% for year, yearPosts in collections.postsByYear %}
<div class="year-block">
<div class="section-title extra-bold">{{ year }}</div>
<hr>
{% for post in yearPosts | reverse %}
{% if post in collections.blog %}
<div class="post-block">
<div class="post-meta post-meta-condensed">
<div class="meta-single">
{{ post.date | dateFull }}
</div>
<div class="meta-single">
{% for tag in post.data.tags %}
{% if not tag.includes("blog") %}
#<a class="meta-tag" href="/tags/{{ tag | slugify }}/">{{ tag }}</a>
{% endif %}
{% endfor %}
</div>
</div>
<h3 class="post-title">
<a href="{{ post.url | url }}">{{ post.data.title }}</a>
</h3>
{% if post.data.excerpt|length %}
<div class="post-summary">
{{ post.data.excerpt }}
</div>
{% endif %}
</div>
{% endif %}
{% endfor %}
</div>
{% endfor %}