parent
956eede4d8
commit
c79a95ffd4
3 changed files with 17 additions and 39 deletions
@ -1,36 +0,0 @@ |
||||
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" version="2.0"> |
||||
<channel> |
||||
<title>XXX {{ 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> |
||||
{{- 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> |
||||
<author>{{ .Params.author }}</author> |
||||
<guid isPermaLink="true">{{ .Permalink }}</guid> |
||||
<description>{{ printf `<![CDATA[%s]]>` .Params.description | safeHTML }}</description> |
||||
<content:encoded type="html">{{ printf `<![CDATA[%s]]>` .Content | safeHTML }}</content:encoded> |
||||
</item> |
||||
{{ end }} |
||||
</channel> |
||||
</rss> |
Loading…
Reference in new issue