-
Notifications
You must be signed in to change notification settings - Fork 0
/
blog.njk
32 lines (30 loc) · 833 Bytes
/
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
---
layout: fullPage.njk
title: Blog Posts
---
<h1>Blog Posts</h1>
<div class="blog-items">
{%- for item in collections.Blog | reverse -%}
<a class="preview-wrapper"
href="{{item.url}}">
<!-- {% if
item.data.tags.includes('Editorial')
%}
{% include "svgs/editorial.svg" %}
{% elif
item.data.tags.includes('Podcast')
%}
{% include "svgs/microphone.svg" %}
{% elif
item.data.tags.includes('Event')
%}
{% include "svgs/event.svg" %}
{% endif %} -->
<img class="preview-image"
src="{{item.data.previewImage}}"
alt="Cover image.">
<div class="post-title">
{{item.data.title}}</div>
</a>
{%- endfor -%}
</div>