gil.ink/src/notes.njk

27 lines
783 B
Plaintext
Raw Normal View History

2025-05-22 03:35:14 -04:00
---
layout: single
2025-05-22 10:13:18 -04:00
permalink: "/note/{{ note.date | formatDateIso('yyyy-MM-dd') }}{{ note.slug }}/index.html"
2025-05-22 03:35:14 -04:00
pagination:
2025-05-22 10:13:18 -04:00
data: notes
2025-05-22 03:35:14 -04:00
size: 1
2025-05-22 10:13:18 -04:00
alias: note
2025-05-22 03:35:14 -04:00
title: "Note"
---
<header>
2025-05-22 10:13:18 -04:00
<h1>Note {{ note.date | formatDateIso('yyyy-MM-dd') }}{{ note.slug }}</h1>
<p>Posted {{ note.date | formatDateIsoRel }}</p>
2025-05-22 03:35:14 -04:00
</header>
2025-05-22 10:13:18 -04:00
<p>{{ note.content | safe }}</p>
2025-05-22 03:35:14 -04:00
{% if pagination.href.previous or pagination.href.next %}
<p>
{% if pagination.href.previous %}
<a href="{{ pagination.href.previous }}">&larr; prev</a>
{% endif %}
{% if pagination.href.previous and pagination.href.next %}|{% endif %}
{% if pagination.href.next %}
<a href="{{ pagination.href.next }}">next &rarr;</a>
{% endif %}
</p>
{% endif %}