<image><link> in RSS should link to the permalink
RSS specification says: <https://www.rssboard.org/rss-specification#ltimagegtSubelementOfLtchannelgt> > <link> is the URL of the site, when the channel is rendered, the image is a link to the site. (Note, in practice the image <title> 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.
This commit is contained in:
parent
9ea3bb0e1f
commit
1adf1ca508
|
@ -48,11 +48,11 @@
|
||||||
<title>{{ if eq .Title site.Title }}{{ site.Title }}{{ else }}{{ with .Title }}{{ . }} on {{ end }}{{ site.Title }}{{ end }}</title>
|
<title>{{ if eq .Title site.Title }}{{ site.Title }}{{ else }}{{ with .Title }}{{ . }} on {{ end }}{{ site.Title }}{{ end }}</title>
|
||||||
<link>{{ .Permalink }}</link>
|
<link>{{ .Permalink }}</link>
|
||||||
<description>Recent content {{ if ne .Title site.Title }}{{ with .Title }}in {{ . }} {{ end }}{{ end }}on {{ site.Title }}</description>
|
<description>Recent content {{ if ne .Title site.Title }}{{ with .Title }}in {{ . }} {{ end }}{{ end }}on {{ site.Title }}</description>
|
||||||
{{- with site.Params.images }}
|
{{- if site.Params.images }}
|
||||||
<image>
|
<image>
|
||||||
<title>{{ site.Title }}</title>
|
<title>{{ site.Title }}</title>
|
||||||
<url>{{ index . 0 | absURL }}</url>
|
<url>{{ index site.Params.images 0 | absURL }}</url>
|
||||||
<link>{{ index . 0 | absURL }}</link>
|
<link>{{ .Permalink }}</link>
|
||||||
</image>
|
</image>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
<generator>Hugo -- {{ hugo.Version }}</generator>
|
<generator>Hugo -- {{ hugo.Version }}</generator>
|
||||||
|
|
Loading…
Reference in New Issue