From 70eae6e0431ef343886bdfa7538dc6028e294c7e Mon Sep 17 00:00:00 2001 From: David Thompson Date: Sun, 12 Nov 2023 12:52:40 -0500 Subject: builder: atom: Change summary to content. I've been using the wrong thing for years! --- TODO.org | 2 +- haunt/builder/atom.scm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/TODO.org b/TODO.org index 3fb6a84..b6ec358 100644 --- a/TODO.org +++ b/TODO.org @@ -14,7 +14,7 @@ why not simply output XHTML5? :-) [10:41] you get to use modern HTML and its valid XML I guess because I didn't know about it :) [10:43] -** bug: Atom feed "summary" should be "content" +** DONE bug: Atom feed "summary" should be "content" haunt/builder/atom.scm line 157 https://validator.w3.org/feed/docs/atom.html#recommendedEntryElements ** Allow for cache-busting assets diff --git a/haunt/builder/atom.scm b/haunt/builder/atom.scm index acd74d4..7f85065 100644 --- a/haunt/builder/atom.scm +++ b/haunt/builder/atom.scm @@ -154,7 +154,7 @@ (if email `(email ,email) '()))) (updated ,(date->string* (post-date post))) (link (@ (href ,uri) (rel "alternate"))) - (summary (@ (type "html")) + (content (@ (type "html")) ,(sxml->html-string (post-sxml post))) ,@(map (lambda (enclosure) `(link (@ (rel "enclosure") -- cgit v1.2.3