<feed xmlns='http://www.w3.org/2005/Atom'>
<title>cleberg.net.git/content/templates, branch main</title>
<subtitle>My personal web garden &amp; blog.
</subtitle>
<id>http://git.krz.sh/cmc/cleberg.net.git/atom?h=main</id>
<link rel='self' href='http://git.krz.sh/cmc/cleberg.net.git/atom?h=main'/>
<link rel='alternate' type='text/html' href='http://git.krz.sh/cmc/cleberg.net.git/'/>
<updated>2026-08-12T03:01:41+00:00</updated>
<entry>
<title>update links</title>
<updated>2026-08-12T03:01:41+00:00</updated>
<author>
<name>Christian Cleberg</name>
<email>hello@cleberg.net</email>
</author>
<published>2026-08-12T03:01:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.krz.sh/cmc/cleberg.net.git/commit/?id=8b42c39038765a07f7561f363814430c0c9c81f5'/>
<id>urn:sha1:8b42c39038765a07f7561f363814430c0c9c81f5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Finish the move off weblorg</title>
<updated>2026-08-12T01:35:15+00:00</updated>
<author>
<name>Christian Cleberg</name>
<email>hello@cleberg.net</email>
</author>
<published>2026-08-12T01:34:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.krz.sh/cmc/cleberg.net.git/commit/?id=a6ee2e0ca79b83b7f6bd4a521777cffdaf2260f2'/>
<id>urn:sha1:a6ee2e0ca79b83b7f6bd4a521777cffdaf2260f2</id>
<content type='text'>
Remove what the migration left behind, then cut build.py down to the work
orgo does not do: 443 lines to 168.

- Delete publish.el and theme/templates/, superseded by content/orgo.toml
  and content/templates/. theme/static/ stays; orgo publishes it as assets.
- Drop the tag builder, the org-source copy, and the helpers that only fed
  them. orgo generates /tags/ and a page per tag from a collection.
- Rewrite the README and the migration-era comments that explained the
  config by pointing at what weblorg used to do.
- Serve styles.css as authored. Minifying 1KB of CSS saved 52 bytes over
  the wire once compressed, which did not pay for a build step and a
  toolchain dependency.
- Stop wiping the output directory. The .orgo-cache.json inside it is what
  makes a build incremental, and orgo already prunes outputs whose source
  is gone and re-emits any that are missing. Production keeps .build/ and
  development gets .build-dev/, because production rewrites image URLs in
  the output and a shared directory would let one environment reuse pages
  rendered for the other.

An incremental build is byte-identical to a clean one, and the site output
is unchanged apart from the /uses/ stack row.
</content>
</entry>
<entry>
<title>org-ssg is called orgo now</title>
<updated>2026-08-12T01:35:15+00:00</updated>
<author>
<name>Christian Cleberg</name>
<email>hello@cleberg.net</email>
</author>
<published>2026-08-11T21:48:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.krz.sh/cmc/cleberg.net.git/commit/?id=5d60a70d6a963c234d311ca87829cf3150f72ef6'/>
<id>urn:sha1:5d60a70d6a963c234d311ca87829cf3150f72ef6</id>
<content type='text'>
The config file follows the tool: content/org-ssg.toml is content/orgo.toml, and
the build cache it writes is .orgo-cache.json. Nothing about the site changes —
196 pages, same output.
</content>
</entry>
<entry>
<title>Make the reply footer a snippet, not a rule</title>
<updated>2026-08-12T01:35:15+00:00</updated>
<author>
<name>Christian Cleberg</name>
<email>hello@cleberg.net</email>
</author>
<published>2026-08-11T21:12:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.krz.sh/cmc/cleberg.net.git/commit/?id=3239e8978f879af87a928866163173f66127e9f1'/>
<id>urn:sha1:3239e8978f879af87a928866163173f66127e9f1</id>
<content type='text'>
Routing garden notes and /now/ through post.html put the invitation to reply on
them because a directory said so, which is the wrong thing to be automatic — it
is a choice about each page, and I had made it site-wide to chase parity with
the live site.

Those two rules are gone; blog posts keep it. The wording now lives in
templates/reply.html rather than inside post.html, so it can be edited or
emptied without touching how a post is built, and editing it re-renders the 170
pages that include it and nothing else.

Any page opts in for itself with `#+TEMPLATE: post.html`; any post opts out with
`#+TEMPLATE: base.html`.
</content>
</entry>
<entry>
<title>Settle the four remaining differences from the live site</title>
<updated>2026-08-12T01:35:15+00:00</updated>
<author>
<name>Christian Cleberg</name>
<email>hello@cleberg.net</email>
</author>
<published>2026-08-11T21:07:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.krz.sh/cmc/cleberg.net.git/commit/?id=c156621a773f144fb829a63be63b8af33506d975'/>
<id>urn:sha1:c156621a773f144fb829a63be63b8af33506d975</id>
<content type='text'>
- **The feed carries whole posts again.** `include_content = true` on the feed
  collection, and the template embeds `post.content` rather than the excerpt.
  169 items, 2.9 MB, same as weblorg produces.

- **Section numbering on.** The live site numbers its headings — inherited from
  Emacs' default rather than chosen, but switching generators is the wrong
  moment to quietly redesign 174 pages. The contents list numbers to match. One
  config line to flip if you decide against it.

- **The reply footer follows the live site**: blog posts, garden notes and
  /now/, but not /uses/, /tips/ or /salary/. Two more `[[pages]]` rules.

- **Tags stay one page per tag**, deliberately unlike the live single page with
  every post inlined under an anchor. A tag with its own URL is worth linking
  to, and the index stays short. Each index entry carries the tag's slug as an
  `id`, so old `/tags/#audit` links still land on the right row.

Also fixes the garden emoji, which I had transcribed as 🌳 where the weblorg
template has 🪴 — taken from that template this time rather than typed.

Content now matches the live site on 192 of 195 pages. The three that differ:
footnote section markup, an `org-cite` citation neither generator renders
usefully, and the tags page above.
</content>
</entry>
<entry>
<title>Publish theme/static directly instead of copying it into content</title>
<updated>2026-08-12T01:35:15+00:00</updated>
<author>
<name>Christian Cleberg</name>
<email>hello@cleberg.net</email>
</author>
<published>2026-08-11T20:31:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.krz.sh/cmc/cleberg.net.git/commit/?id=17131d475ea658e3feeb37f8f01900f1285fe128'/>
<id>urn:sha1:17131d475ea658e3feeb37f8f01900f1285fe128</id>
<content type='text'>
org-ssg can read asset directories outside its source now, so the four files
copied in — gpg.txt, robots.txt, salary.csv and styles.css — go back to having
one home. `[build] assets = ["../theme/static"]` publishes that directory at /,
which is where weblorg serves it from too.

That also removes the note asking whoever comes next to keep two stylesheets
identical, and picks up styles.min.css as a side effect.
</content>
</entry>
<entry>
<title>Render the table of contents, and group /blog/ by year</title>
<updated>2026-08-12T01:35:15+00:00</updated>
<author>
<name>Christian Cleberg</name>
<email>hello@cleberg.net</email>
</author>
<published>2026-08-11T19:28:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.krz.sh/cmc/cleberg.net.git/commit/?id=b6870928c46c1eec7103746bd3153a671b8d344c'/>
<id>urn:sha1:b6870928c46c1eec7103746bd3153a671b8d344c</id>
<content type='text'>
Two of the differences the page-by-page diff against the live site turned up.

The TOC was the larger one: live has one on 171 pages and the org-ssg build had
none. `[html] toc = true` only *exposes* `page.toc` — rendering it is the
layout's job, and base.html never did. It now emits the same
`div#table-of-contents` Emacs does, from a recursive macro over the tree. The
anchors already matched, so every link lands where the live one does. Pages that
say `#+OPTIONS: toc:nil` get an empty tree and render nothing, which is why
/uses/, /now/ and /salary/ have no TOC here either — the same three as live.

/blog/ now breaks its list under year headings, as the live index does, using
`page.year` and minijinja's groupby. `group_by_year` at the top of blog.html
turns it off for one flat list.

After both, /blog/ matches the live page's content exactly, and 171 of 171 TOCs
are accounted for.
</content>
</entry>
<entry>
<title>Use a straight apostrophe on the home page</title>
<updated>2026-08-12T01:35:15+00:00</updated>
<author>
<name>Christian Cleberg</name>
<email>hello@cleberg.net</email>
</author>
<published>2026-08-11T19:08:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.krz.sh/cmc/cleberg.net.git/commit/?id=4d78517a19684cc574de3754f6f36c82f0a8179e'/>
<id>urn:sha1:4d78517a19684cc574de3754f6f36c82f0a8179e</id>
<content type='text'>
Transcribing theme/templates/index.html into home.html turned "I've" into
"I&amp;rsquo;ve", so the org-ssg build rendered a curly apostrophe where the live
page has an ASCII one — the only character that differed between them.
</content>
</entry>
<entry>
<title>Route blog posts through post.html</title>
<updated>2026-08-12T01:35:15+00:00</updated>
<author>
<name>Christian Cleberg</name>
<email>hello@cleberg.net</email>
</author>
<published>2026-08-11T18:51:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.krz.sh/cmc/cleberg.net.git/commit/?id=42bf4bae9d582abd56758c1fcc7741419161fe7e'/>
<id>urn:sha1:42bf4bae9d582abd56758c1fcc7741419161fe7e</id>
<content type='text'>
The reply-by-email and Bubbles lines were emitted from base.html behind a test
on the page's URL, because org-ssg had no way for a page to pick a layout. It
does now, so they live in a post.html that extends the shared one — the same
split weblorg has between theme/templates/base.html and post.html — selected by
a [[pages]] rule for blog/.

All 169 posts carry the footer; /blog/ itself does not, being a generated
listing rather than a post.
</content>
</entry>
<entry>
<title>Bring the org-ssg templates to parity with the live site</title>
<updated>2026-08-12T01:35:15+00:00</updated>
<author>
<name>Christian Cleberg</name>
<email>hello@cleberg.net</email>
</author>
<published>2026-08-11T18:41:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.krz.sh/cmc/cleberg.net.git/commit/?id=9049e20a29fb54245079ec19ae4a503e3f8e2799'/>
<id>urn:sha1:9049e20a29fb54245079ec19ae4a503e3f8e2799</id>
<content type='text'>
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
  &lt;title&gt; 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, &lt;main id="main-content"&gt;,
  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 &lt;description&gt; 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.
</content>
</entry>
</feed>
