summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2023-11-12 12:52:40 -0500
committerDavid Thompson <dthompson2@worcester.edu>2023-11-12 12:52:40 -0500
commit70eae6e0431ef343886bdfa7538dc6028e294c7e (patch)
tree4fbbe82a031fa62be39e02a5b452ebefc4c13417
parentb7cc442041a2701b7b22f77b268bd7b1638ae0ff (diff)
builder: atom: Change summary to content.
I've been using the wrong thing for years!
-rw-r--r--TODO.org2
-rw-r--r--haunt/builder/atom.scm2
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 @@
<mirai> why not simply output XHTML5? :-) [10:41]
<mirai> you get to use modern HTML and its valid XML
<dthompson> 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")