diff options
author | Thedro Neely <thedroneely@gmail.com> | 2019-11-03 01:10:48 -0400 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2019-11-03 01:10:48 -0400 |
commit | 6bd0ac6e79bc2cdca649abceed0982d4e286439e (patch) | |
tree | 70216299ac4f2d47db1a6a264e6bfd47ad7e1d36 /generators/hugo/themes/tdro/layouts/_default/rss.xml | |
parent | 129570333b86e4261af4f2008c54bd173e1eb298 (diff) | |
download | thedroneely.com-6bd0ac6e79bc2cdca649abceed0982d4e286439e.tar.gz thedroneely.com-6bd0ac6e79bc2cdca649abceed0982d4e286439e.tar.bz2 thedroneely.com-6bd0ac6e79bc2cdca649abceed0982d4e286439e.zip |
app/views/snippets/rss: Link RSS feeds directly
Move rss.xml to _default to prioritize for Hugo
Diffstat (limited to 'generators/hugo/themes/tdro/layouts/_default/rss.xml')
-rw-r--r-- | generators/hugo/themes/tdro/layouts/_default/rss.xml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/generators/hugo/themes/tdro/layouts/_default/rss.xml b/generators/hugo/themes/tdro/layouts/_default/rss.xml new file mode 100644 index 0000000..dfaf7f4 --- /dev/null +++ b/generators/hugo/themes/tdro/layouts/_default/rss.xml @@ -0,0 +1,27 @@ +{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\" ?>" | safeHTML }} +<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> + <channel> + <title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title> + <link>{{ .Permalink }}</link> + <description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description> + <generator>Hugo</generator>{{ with .Site.LanguageCode }} + <language>{{.}}</language>{{end}}{{ with .Site.Author.email }} + <managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }} + <webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }} + <copyright>{{.}}</copyright>{{end}}{{ 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 }} + {{ end }} + {{ range .Pages }} + <item> + <title>{{ .Title }}</title> + <link>{{ .Permalink }}</link> + <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> + <description>{{ .Content | replaceRE `<\?php(.*?\n?)*?\?>` "" | html }}</description> + </item> + {{ end }} + </channel> +</rss> |