aboutsummaryrefslogtreecommitdiff
path: root/content/templates/garden.html
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2026-08-11 13:41:18 -0500
committerChristian Cleberg <[email protected]>2026-08-11 13:41:18 -0500
commitad2d5934148e17efa20e77879ddd45950209852b (patch)
treef5f79818374a6d991182d4dc408c38d421414f2c /content/templates/garden.html
parent7e5c882d888ed7d4d635480a2dec92b4a3e7ddf8 (diff)
downloadcleberg.net-ad2d5934148e17efa20e77879ddd45950209852b.tar.gz
cleberg.net-ad2d5934148e17efa20e77879ddd45950209852b.tar.bz2
cleberg.net-ad2d5934148e17efa20e77879ddd45950209852b.zip
Bring the org-ssg templates to parity with the live site
The org-ssg build rendered the right content in the wrong chrome. Closing every difference found by comparing it against theme/templates/ and the live pages: - base.html: Home link written by the layout rather than the site title, a <title> of "Page - cleberg.net" (bare "cleberg.net" on the home page, via a subtitle block), author/description/og meta, the RSS alternate link, four rel="me" identity links, favicon, skip link, <main id="main-content">, aria-label on the nav, and the real footer. - home.html: the h1 is "Christian Cleberg" (the collection's title), and the email line has its GPG link back. - blog.html and garden.html: the two listings carry their own prose on the live site — the search/RSS hint, and the garden's growth stages — so they are no longer sharing the generic list.html. Tag pages still use it. - tags.html: "Browse posts by topic." - Blog posts get the reply-by-email and Bubbles lines. org-ssg has no per-page template selection, so the layout keys off the page's URL prefix. - Tags leaves the nav, which the live site does not have. feed.xml is new: the footer links /feed.xml and nothing was generating it. It is a collection whose template happens to be XML. Its <description> carries each post's excerpt rather than the full rendered body, which weblorg's feed does include — a collection template gets each entry's metadata, not its HTML. base_url is now set, since canonical links and a feed cannot be relative. Page links stay relative, so a preview build still works from any directory. gpg.txt, robots.txt and salary.csv are copied in from theme/static/: weblorg publishes that directory to the site root, and org-ssg publishes from content/, so /gpg.txt was a 404. styles.min.css is deliberately not copied — it is gitignored build output, and the tracked styles.css holds the same rules.
Diffstat (limited to 'content/templates/garden.html')
-rw-r--r--content/templates/garden.html30
1 files changed, 30 insertions, 0 deletions
diff --git a/content/templates/garden.html b/content/templates/garden.html
new file mode 100644
index 0000000..9d21248
--- /dev/null
+++ b/content/templates/garden.html
@@ -0,0 +1,30 @@
+{# The garden index at /garden/, mirroring theme/templates/garden.html.
+ Notes are listed by title and description rather than by date. #}
+{% extends "base.html" %}
+{% block main %}
+<h1>{{ page.title }}</h1>
+<p>Notes in various states of growth. Some are stubs, some are developed. Browse
+around.</p>
+<section>
+<h2>&#127795; The Growth Stages</h2>
+<p>Instead of dates, these metadata labels show how mature a page is:</p>
+<span><strong>&#127793; Seedlings:</strong> Rough notes, raw ideas, or "half-baked"
+thoughts.</span><br>
+<span><strong>&#127807; Budding:</strong> Notes that have some structure and a few
+internal links.</span><br>
+<span><strong>&#127795; Evergreen:</strong> High-conviction ideas that are
+well-researched and stable.</span><br>
+<span><strong>&#127810; Compost:</strong> Ideas you no longer agree with but want to
+keep for historical context.</span><br><br>
+</section>
+<ul>
+{%- for entry in pages %}
+<li>
+<a href="{{ root }}{{ entry.url }}">{{ entry.title }}</a>
+{%- if entry.excerpt %}
+<span>{{ entry.excerpt }}</span>
+{%- endif %}
+</li>
+{%- endfor %}
+</ul>
+{% endblock %}