mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-27 14:12:09 +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:
parent
74038d9697
commit
f8c8e6ae40
2 changed files with 4 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
title: "Proposal: an HTML element for spoilers"
|
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
|
date: 2023-11-12T13:48:00-08:00
|
||||||
outputs:
|
outputs:
|
||||||
- html
|
- html
|
||||||
|
|
|
@ -83,6 +83,9 @@
|
||||||
{{- $image = resources.Get (printf "/p/%s" . ) | resources.Fingerprint "md5" -}}
|
{{- $image = resources.Get (printf "/p/%s" . ) | resources.Fingerprint "md5" -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
<media:thumbnail url="{{ $image.Permalink }}" width="{{ $image.Width }}" height="{{ $image.Height }}" />
|
<media:thumbnail url="{{ $image.Permalink }}" width="{{ $image.Width }}" height="{{ $image.Height }}" />
|
||||||
|
{{ with .Description -}}
|
||||||
|
<summary type="text">{{ . }}</summary>
|
||||||
|
{{- end }}
|
||||||
<content type="xhtml" xml:base="{{ .Permalink }}">
|
<content type="xhtml" xml:base="{{ .Permalink }}">
|
||||||
<div xmlns="http://www.w3.org/1999/xhtml">
|
<div xmlns="http://www.w3.org/1999/xhtml">
|
||||||
{{- if .Params.replyURI -}}
|
{{- if .Params.replyURI -}}
|
||||||
|
|
Loading…
Reference in a new issue