Rename updates to notes

This commit is contained in:
Gil 2025-05-22 09:13:18 -05:00
parent bacaac2ada
commit 75480fcdfa
5 changed files with 10 additions and 9 deletions

View file

@ -14,7 +14,7 @@ layout: base
<header>
<h2>Updates</h2>
</header>
{% include 'snippets/updates.njk' %}
{% include 'snippets/notes.njk' %}
</aside>
<aside class="home__badges box pad">
<header>

View file

@ -31,7 +31,9 @@ This is a list of changes to my website, organized by date.
### Done
- Settled on `/entry/YYYY/MM/DD/slug` for journal permalinks
- Permalinks
- Journal entries: `/entry/YYYY/MM/DD/slug`
- Notes: `/note/YYYY-MM-DD[a-z]`
- Added favicon
- Paginated category and tag pages (not enough content to have pages but it works, trust me)

View file

@ -1,19 +1,18 @@
---
layout: single
permalink: "/note/{{ update.date | formatDateIso('yyyy-MM-dd') }}{{ update.slug }}/index.html"
permalink: "/note/{{ note.date | formatDateIso('yyyy-MM-dd') }}{{ note.slug }}/index.html"
pagination:
data: updates
data: notes
size: 1
alias: update
alias: note
title: "Note"
---
<header>
<h1>Note {{ update.date | formatDateIso('yyyy-MM-dd') }}{{ update.slug }}</h1>
<p>Posted {{ update.date | formatDateIsoRel }}</time>
</p>
<h1>Note {{ note.date | formatDateIso('yyyy-MM-dd') }}{{ note.slug }}</h1>
<p>Posted {{ note.date | formatDateIsoRel }}</p>
</header>
<p>{{ update.content | safe }}</p>
<p>{{ note.content | safe }}</p>
{% if pagination.href.previous or pagination.href.next %}
<p>
{% if pagination.href.previous %}