From 1adf1ca508ff545c78f97dbb562295cb1bc3b12c Mon Sep 17 00:00:00 2001 From: Hong Xu Date: Wed, 26 Jun 2024 13:45:01 -0700 Subject: [PATCH] in RSS should link to the permalink RSS specification says: > is the URL of the site, when the channel is rendered, the image is a link to the site. (Note, in practice the image and <link> should have the same value as the channel's <title> and <link>. Practically, some RSS readers may produce clicable images that leads to homepage. Linking an image to the image itself doesn't make much sense. --- layouts/_default/rss.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index fed8ae9a..1f84a9ee 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -48,11 +48,11 @@ <title>{{ if eq .Title site.Title }}{{ site.Title }}{{ else }}{{ with .Title }}{{ . }} on {{ end }}{{ site.Title }}{{ end }} {{ .Permalink }} Recent content {{ if ne .Title site.Title }}{{ with .Title }}in {{ . }} {{ end }}{{ end }}on {{ site.Title }} - {{- with site.Params.images }} + {{- if site.Params.images }} {{ site.Title }} - {{ index . 0 | absURL }} - {{ index . 0 | absURL }} + {{ index site.Params.images 0 | absURL }} + {{ .Permalink }} {{- end }} Hugo -- {{ hugo.Version }}