rss: Full article in description, link in head

This commit is contained in:
Jan Kremer 2024-07-02 19:26:33 +02:00
parent ed7fdc24c6
commit 967b613d91
No known key found for this signature in database
2 changed files with 5 additions and 3 deletions

View file

@ -34,8 +34,8 @@
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}} {{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
<guid>{{ .Permalink }}</guid> <guid>{{ .Permalink }}</guid>
<description> <description>
<p><strong>{{ .Description | html }}</strong></p> <p><strong>{{ .Description | transform.XMLEscape | safeHTML }}</strong></p>
{{ .Content | html }} {{ .Content | transform.XMLEscape | safeHTML }}
</description> </description>
</item> </item>
{{ end }} {{ end }}

View file

@ -9,4 +9,6 @@
site.Title }}{{ end }} site.Title }}{{ end }}
</title> </title>
{{ partialCached "head/css.html" . }} {{ partialCached "head/js.html" . }} {{ {{ partialCached "head/css.html" . }} {{ partialCached "head/js.html" . }} {{
partial "head/analytics.html" . }} partial "head/analytics.html" . }} {{ with .OutputFormats.Get "rss" -}} {{
printf `<link rel="%q" type="%q" href="%q" title="%q" />` .Rel .MediaType.Type
.Permalink site.Title | safeHTML }} {{ end }}