add categories to feed

This commit is contained in:
Amolith 2023-06-01 00:25:31 -04:00
parent b25dd50157
commit 732725688e
Signed by: Amolith
GPG Key ID: 8AE30347CE28D101
1 changed files with 8 additions and 1 deletions

View File

@ -28,8 +28,15 @@
<item>
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
{{- if .Params.Tags }}
<category>{{ range $key, $value := .Params.Tags }}{{ if $key }}/{{ end }}{{ $value }}{{ end }}</category>>
{{- else }}
{{- if .Params.Rss_only }}
<category>RSS-only</category>>
{{- end }}
{{- end }}
<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}}
{{- with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
<guid>{{ .Permalink }}</guid>
<description>{{ .Content | html }}</description>
</item>