gil.ink/src/notes.njk
2025-05-24 21:12:41 -05:00

27 lines
806 B
Plaintext

---
layout: single
permalink: '/note/{{ note.date | formatDateIso("yyyy-MM-dd") }}{{ note.slug }}/index.html'
pagination:
data: notes
size: 1
alias: note
title: "Note"
---
<header>
<h1>Note {{ note.date | formatDateIso("yyyy-MM-dd") }}{{ note.slug }}</h1>
<p>Posted {{ note.date | formatDateIso("yyyy-MM-dd 'at' T") }} </p>
</header>
<p>{{ note.content | safe }}</p>
{% if pagination.href.previous or pagination.href.next %}
<nav>
{% 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 %}
</nav>
{% endif %}