2026-06-29 03:05:41 +00:00
|
|
|
---
|
|
|
|
|
layout: base.njk
|
|
|
|
|
title: Subjects
|
|
|
|
|
permalink: /subjects/
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
<h1>Subjects</h1>
|
|
|
|
|
|
|
|
|
|
{%- for subject in collections.subjects %}
|
|
|
|
|
<section class="subject-group">
|
|
|
|
|
<h2>{{ subject }}</h2>
|
|
|
|
|
<ul>
|
2026-08-02 22:45:19 +00:00
|
|
|
{#- 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. -#}
|
2026-06-29 03:05:41 +00:00
|
|
|
{%- for post in collections[subject] | sort(true, false, "date") %}
|
2026-08-02 22:45:19 +00:00
|
|
|
{%- if not post.data.draft %}
|
2026-06-29 03:05:41 +00:00
|
|
|
<li>
|
|
|
|
|
<a href="{{ post.url }}">{{ post.data.title | inlineMarkdown | safe }}</a>
|
|
|
|
|
<time datetime="{{ post.date | isoDate }}">{{ post.date | readableDate }}</time>
|
|
|
|
|
</li>
|
2026-08-02 22:45:19 +00:00
|
|
|
{%- endif %}
|
2026-06-29 03:05:41 +00:00
|
|
|
{%- endfor %}
|
|
|
|
|
</ul>
|
|
|
|
|
</section>
|
|
|
|
|
{%- else %}
|
|
|
|
|
<p>No subjects yet.</p>
|
|
|
|
|
{%- endfor %}
|