Rename updates to notes
This commit is contained in:
parent
bacaac2ada
commit
75480fcdfa
|
@ -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>
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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 %}
|
Loading…
Reference in a new issue