mirror of
https://github.com/Brandon-Rozek/website-theme.git
synced 2025-12-04 14:50:24 +00:00
Fixing up feeds
This commit is contained in:
parent
0ef524a9f3
commit
de907bfa1d
3 changed files with 8 additions and 6 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue