diff options
author | Thedro Neely <thedroneely@gmail.com> | 2022-04-17 03:58:25 -0400 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2022-04-17 03:58:25 -0400 |
commit | b0488a1d5401bafcb9b780a0f08ae5205f1f3278 (patch) | |
tree | 560dd51bd6db8c1d1eaa8b28b2e47652f6af1b2c | |
parent | f29650c2f156ea6f97c026213480875ce5244306 (diff) | |
download | thedroneely.com-b0488a1d5401bafcb9b780a0f08ae5205f1f3278.tar.gz thedroneely.com-b0488a1d5401bafcb9b780a0f08ae5205f1f3278.tar.bz2 thedroneely.com-b0488a1d5401bafcb9b780a0f08ae5205f1f3278.zip |
generators/hugo/layouts/_default/rss.xml: Cleanup
-rw-r--r-- | generators/hugo/themes/tdro/layouts/_default/rss.xml | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/generators/hugo/themes/tdro/layouts/_default/rss.xml b/generators/hugo/themes/tdro/layouts/_default/rss.xml index 3c1583a..9f94c84 100644 --- a/generators/hugo/themes/tdro/layouts/_default/rss.xml +++ b/generators/hugo/themes/tdro/layouts/_default/rss.xml @@ -12,20 +12,17 @@ <link>{{ .Permalink }}</link> <description>Recent {{ if ne .Title .Site.Title }}{{ with .Title }}{{ . }} {{ end }}{{ end }}from {{ .Site.Title }}</description> <language>{{ .Site.LanguageCode }}</language> - <managingEditor>{{ $.Site.Author.name }}</managingEditor> - <webMaster>{{ $.Site.Author.name }}</webMaster> - <copyright>{{ $.Site.Author.name }}</copyright>{{ if not .Date.IsZero }} + {{- if not .Date.IsZero -}} <lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }} {{ with .OutputFormats.Get "RSS" }} - {{- printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML -}} + {{- printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink "application/rss+xml" | safeHTML -}} {{ end }} - {{ range $pages }} + {{- range $pages -}} {{ if (ne .Params.hidden true) }} <item> <title>{{ .Title }}</title> <link>{{ .Permalink }}</link> <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate> - <author>{{ $.Site.Author.name }}</author> <guid>{{ .Permalink }}</guid> <description>{{ .Content | html }}</description> </item> |