aboutsummaryrefslogtreecommitdiff
path: root/generators/hugo/themes/tdro/layouts
diff options
context:
space:
mode:
authorThedro Neely <thedroneely@gmail.com>2019-08-27 23:23:31 -0400
committerThedro Neely <thedroneely@gmail.com>2019-08-27 23:23:31 -0400
commit9f136cf0bbb88e2c9019bca25f270a75d368987c (patch)
tree9c476e7f88b9aaf11b1bf0546eb33f0cc7135d18 /generators/hugo/themes/tdro/layouts
parentb2822724a6549bfb04aff8b5c9aba0c516a0b467 (diff)
downloadthedroneely.com-9f136cf0bbb88e2c9019bca25f270a75d368987c.tar.gz
thedroneely.com-9f136cf0bbb88e2c9019bca25f270a75d368987c.tar.bz2
thedroneely.com-9f136cf0bbb88e2c9019bca25f270a75d368987c.zip
generators/hugo/layouts/rss.xml: Add header and strip PHP tags
Diffstat (limited to 'generators/hugo/themes/tdro/layouts')
-rw-r--r--generators/hugo/themes/tdro/layouts/rss.xml6
1 files changed, 3 insertions, 3 deletions
diff --git a/generators/hugo/themes/tdro/layouts/rss.xml b/generators/hugo/themes/tdro/layouts/rss.xml
index bcf8941..dfaf7f4 100644
--- a/generators/hugo/themes/tdro/layouts/rss.xml
+++ b/generators/hugo/themes/tdro/layouts/rss.xml
@@ -1,10 +1,10 @@
-
+{{ 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 -- gohugo.io</generator>{{ with .Site.LanguageCode }}
+ <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 }}
@@ -20,7 +20,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>
- <description>{{ .Content | html }}</description>
+ <description>{{ .Content | replaceRE `<\?php(.*?\n?)*?\?>` "" | html }}</description>
</item>
{{ end }}
</channel>