1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-09-19 20:02:10 +00:00

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.
This commit is contained in:
Rohan Kumar 2023-11-29 05:09:39 -08:00
parent 74038d9697
commit f8c8e6ae40
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479
2 changed files with 4 additions and 1 deletions

View file

@ -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 <details>."
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

View file

@ -83,6 +83,9 @@
{{- $image = resources.Get (printf "/p/%s" . ) | resources.Fingerprint "md5" -}}
{{- end -}}
<media:thumbnail url="{{ $image.Permalink }}" width="{{ $image.Width }}" height="{{ $image.Height }}" />
{{ with .Description -}}
<summary type="text">{{ . }}</summary>
{{- end }}
<content type="xhtml" xml:base="{{ .Permalink }}">
<div xmlns="http://www.w3.org/1999/xhtml">
{{- if .Params.replyURI -}}