-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.njk
46 lines (43 loc) · 1.32 KB
/
index.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
44
45
46
---js
{
pagination: {
data: "collections.all",
size: 20,
reverse: true,
before: function(p, f) {
return p.filter(p => p.data.date)
}
}
}
---
{% extends 'page.njk' %}
{% block content %}
{% for post in pagination.items %}
{% if post.data.tags == 'quotes' %}
<blockquote>{{ post.content | safe}}</blockquote>
<div class="!mt-2">
via {{ post.data.source }}
</div>
{% else %}
{% set content = post.content %}
{% set title = post.data.title %}
{% set date = post.data.date %}
{% set url = post.url %}
{% set external_url = post.data.external_url %}
{% set external_url_cta = post.data.external_url_cta %}
{% include 'content.html' %}
{% endif %}
<hr class="!w-screen !-ml-12 lg:!ml-[calc(-50vw+32.5ch)]" />
{% endfor %}
<div style="text-align: center">
{% if pagination.previousPageHref %}
<a href="{{ pagination.previousPageHref }}">Previous page</a> ·
{% endif %}
{% if pagination.nextPageHref %}
<a href="{{ pagination.nextPageHref }}">Next page</a>
{% endif %}
</div>
{% endblock %}
{% block head %}
<title>Applied Cartography</title>
{% endblock %}