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> <header>
<h2>Updates</h2> <h2>Updates</h2>
</header> </header>
{% include 'snippets/updates.njk' %} {% include 'snippets/notes.njk' %}
</aside> </aside>
<aside class="home__badges box pad"> <aside class="home__badges box pad">
<header> <header>

View file

@ -31,7 +31,9 @@ This is a list of changes to my website, organized by date.
### Done ### 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 - Added favicon
- Paginated category and tag pages (not enough content to have pages but it works, trust me) - Paginated category and tag pages (not enough content to have pages but it works, trust me)

View file

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