diff options
| author | Christian Cleberg <[email protected]> | 2026-08-11 16:07:17 -0500 |
|---|---|---|
| committer | Christian Cleberg <[email protected]> | 2026-08-11 20:35:15 -0500 |
| commit | c156621a773f144fb829a63be63b8af33506d975 (patch) | |
| tree | 8bef9ea5a7564a5697d6d59f5b073f3d4c1ab047 /content/templates/feed.xml | |
| parent | 17131d475ea658e3feeb37f8f01900f1285fe128 (diff) | |
| download | cleberg.net-c156621a773f144fb829a63be63b8af33506d975.tar.gz cleberg.net-c156621a773f144fb829a63be63b8af33506d975.tar.bz2 cleberg.net-c156621a773f144fb829a63be63b8af33506d975.zip | |
Settle the four remaining differences from the live site
- **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.
Diffstat (limited to 'content/templates/feed.xml')
| -rw-r--r-- | content/templates/feed.xml | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/content/templates/feed.xml b/content/templates/feed.xml index 0319910..fa761b8 100644 --- a/content/templates/feed.xml +++ b/content/templates/feed.xml @@ -3,9 +3,8 @@ from the site that served it, so every URL here is absolute â which is what `| absolute` needs [site] base_url for. - One difference from weblorg: <description> carries each post's excerpt rather than its - full HTML. org-ssg gives a collection template each entry's metadata, not its rendered - body. #} + <description> carries each post's full rendered HTML, as weblorg's feed does â the + collection sets `include_content` to ask for it. #} <rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" @@ -29,7 +28,7 @@ {%- for tag in post.tags %} <category>{{ tag }}</category> {%- endfor %} - <description>{{ post.excerpt }}</description> + <description><![CDATA[{{ post.content | safe }}]]></description> </item> {%- endfor %} </channel> |
