From f8c8e6ae407bf4043b43ec39d992f45cbb2fcbb3 Mon Sep 17 00:00:00 2001 From: Rohan Kumar Date: Wed, 29 Nov 2023 05:09:39 -0800 Subject: [PATCH] Add summary elements to Atom feeds Should improve article previews in some readers. This also entailed swapping out angle-brackets in one description to avoid errors. --- content/posts/spoiler-element.md | 2 +- layouts/_default/list.atom.xml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/content/posts/spoiler-element.md b/content/posts/spoiler-element.md index f6bf7ba..f0d5b51 100644 --- a/content/posts/spoiler-element.md +++ b/content/posts/spoiler-element.md @@ -1,6 +1,6 @@ --- title: "Proposal: an HTML element for spoilers" -description: "An informal proposal for dedicated elements for spoiler tags in HTML: use-cases, syntax, semantics, recommended UA behavior, and comparisons with
." +description: "An informal proposal for dedicated elements for spoiler tags in HTML: use-cases, syntax, semantics, recommended UA behavior, and comparisons with “details”" date: 2023-11-12T13:48:00-08:00 outputs: - html diff --git a/layouts/_default/list.atom.xml b/layouts/_default/list.atom.xml index 4392c51..5e986de 100644 --- a/layouts/_default/list.atom.xml +++ b/layouts/_default/list.atom.xml @@ -83,6 +83,9 @@ {{- $image = resources.Get (printf "/p/%s" . ) | resources.Fingerprint "md5" -}} {{- end -}} + {{ with .Description -}} + {{ . }} + {{- end }}
{{- if .Params.replyURI -}}