Fixing up feeds

This commit is contained in:
Brandon Rozek 2023-01-20 12:32:11 -05:00
parent 0ef524a9f3
commit de907bfa1d
No known key found for this signature in database
GPG key ID: 26E457DA82C9F480
3 changed files with 8 additions and 6 deletions

View file

@ -12,7 +12,11 @@
<channel>
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} | {{ end }}{{ .Site.Title }}{{ end }}</title>
<link>{{ .Permalink }}</link>
<image>{{ .Site.BaseURL }}img/{{ .Site.Params.avatar }}</image>
<image>
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} | {{ end }}{{ .Site.Title }}{{ end }}</title>
<link>{{ .Permalink }}</link>
<url>{{ .Site.BaseURL }}img/{{ .Site.Params.avatar }}</url>
</image>
<description>{{ .Description }}</description>
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
<language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
@ -30,7 +34,7 @@
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
<guid>{{ .Permalink }}</guid>
{{ printf `<description type="html"><![CDATA[%s]]></description>` .Content | safeHTML }}
{{ printf `<description><![CDATA[%s]]></description>` .Content | safeHTML }}
{{ range .Param "tags" }}<category>{{ . }}</category>
{{ end }}
</item>