Files
unprompted/subjects.njk
Stephen Donahue c6d7c8c211
Some checks failed
Deploy to S3 / deploy (push) Failing after 1m24s
Swap published columns for 24 entries from random.md
Retract the seven published columns into drafts/ and promote the 24 per-date
entries split out of Notes/random.md. Bodies are verbatim; titles, subjects
and slugs are new.

Make publication a matter of location. Notes/Notes.11tydata.js gives anything
under Notes/ permalink: false unless tagged `column`; drafts/drafts.11tydata.js
renders drafts at their real permalink under `yarn dev` and excludes them from
collections entirely in a build, so no template can surface one. Publishing is
now `git mv drafts/<file> columns/`, and moving it back retracts it.

Untagged notes were previously rendered into _site/ and deployed — including
Notes/random.md, which was live at /Notes/random/.
2026-08-02 22:45:19 +00:00

30 lines
905 B
Plaintext

---
layout: base.njk
title: Subjects
permalink: /subjects/
---
<h1>Subjects</h1>
{%- for subject in collections.subjects %}
<section class="subject-group">
<h2>{{ subject }}</h2>
<ul>
{#- collections[subject] is Eleventy's automatic per-tag collection, so it
picks up drafts too whenever they are in collections at all (dev). They
are excluded outright in a production build; this keeps the local page
honest as well, so /subjects/ always mirrors what is actually live. -#}
{%- for post in collections[subject] | sort(true, false, "date") %}
{%- if not post.data.draft %}
<li>
<a href="{{ post.url }}">{{ post.data.title | inlineMarkdown | safe }}</a>
<time datetime="{{ post.date | isoDate }}">{{ post.date | readableDate }}</time>
</li>
{%- endif %}
{%- endfor %}
</ul>
</section>
{%- else %}
<p>No subjects yet.</p>
{%- endfor %}