-
Notifications
You must be signed in to change notification settings - Fork 3
/
now.njk
44 lines (39 loc) · 1.51 KB
/
now.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
{% extends "./page.njk" %}
{% set headerTitle = '/now' %}
{% set titlePrefix = 'Me' %}
{% if isNow %}
{% set subTitle %}
Last updated {{ page.date | dateToFormat("dd LLL yyyy") }}
{% endset %}
{% else %}
{% set subTitle %}
Published {{ page.date | dateToFormat("dd LLL yyyy") }}, this is an older now page.
{% endset %}
{% endif %}
{% block pageContent %}
<section>
<p>
This “now page” offers a big picture glimpse into my what I’m focused on at this point in my life.
<a href="https://nownownow.com/about">What is a now page?</a>
</p>
{{ content | safe }}
<p>
You can see my bookshelf at <a href="https://bookwyrm.social/user/carbontwelve">bookwyrm.social</a> or
at <a href="https://openlibrary.org/people/carbontwelve">openlibrary.org</a>.
</p>
</section>
<nav>
<h3>Update History</h3>
<ul>
{% set current = collections.nowUpdates | reverse | first %}
{% for update in collections.nowUpdates | reverse %}
{% if update.fileSlug == current.fileSlug %}
<li><a href="/now" title="Go to current now page">Current</a></li>
{% else %}
{% set updateTitle = update.date | dateToFormat("LLLL yyyy") %}
<li><a href="{{ update.url }}" title="Read {{ updateTitle }}">{{ updateTitle }}</a></li>
{% endif %}
{% endfor %}
</ul>
</nav>
{% endblock %}