-
Notifications
You must be signed in to change notification settings - Fork 2
/
archive-pages.njk
91 lines (88 loc) · 2.75 KB
/
archive-pages.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
---
layout: base.njk
title: Archive
type: archive
pagination:
data: collections
size: 1
alias: tag
filter:
- blog
- all
- postsByYear
- tagsList
- android-docs
- notes
permalink: "/tags/{{ tag | slugify }}/"
---
{% if not tag.includes("notes") %}
<div class="section-title extra-bold">
{{ tag }} (#{{ tag | slugify }})
</div>
<hr>
{% set taglist = collections[ tag ] %}
{% for post in taglist | reverse %}
<div class="post-block">
<div class="post-meta post-meta-condensed">
<div class="meta-single">
{% if post.data.type.includes("note") %}
<a href="{{ post.url | url }}">{{ post.date | dateWithTime }}</a>
{% else %}
{{ post.date | dateFull }}
{% endif %}
</div>
{% if not post.data.type.includes("note") %}
<div class="meta-single">
{% for tag in post.data.tags %}
{% if (not tag.includes("blog")) and (not tag.includes("android-docs")) %}
#<a class="meta-tag" href="/tags/{{ tag | slugify }}/">{{ tag }}</a>
{% endif %}
{% endfor %}
</div>
{% endif %}
</div>
{% if post.data.type.includes("note") %}
<div class="post-content">
{{ post.content | safe }}
</div>
{% else %}
<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 %}
{% endif %}
</div>
{% endfor %}
{% else %}
<section id="note" class=" grid grid-column-2-1 grid-column-mobile-1 grid-gap-30 grid-gap-mobile-0">
<section id="page_content">
<div class="section-title extra-bold">
{{ tag }}
</div>
<hr>
{% set taglist = collections[ tag ] %}
{% for post in taglist | reverse %}
<div class="post-block">
<div class="post-meta post-meta-condensed">
<div class="meta-single">
<a class="blood-orange" href="{{ post.url | url }}">{{ post.date | dateWithTime }}</a>
</div>
</div>
<div class="post-content">
{{ post.content | safe }}
</div>
</div>
{% endfor %}
</section>
<section id="note_overview" class="">
<div class="border-4px border-orange border-curved padding-10 padding-lr-20 first-heading-inline">
<h3>What are notes?</h3>
<p>These are short-form posts for small updates and quick thoughts. They are automatically published to social channels, and have their own <a href="/notes/feed.xml">RSS feed</a>, too.</p>
</div>
</section>
</section>
{% endif %}