You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
2.5 KiB
45 lines
2.5 KiB
<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>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
|
|
<icon>{{"favicon-32x32.png" | absURL}}</icon>
|
|
<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 | first 15 }}
|
|
<item>
|
|
<title>{{ .Title }}{{ with .Params.Subtitle }} // {{ . }}{{ end }}</title>
|
|
<link>{{ .Permalink }}</link>
|
|
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
|
<published>{{ .Date.Format "2006-01-02T15:04:05Z0700" | safeHTML }}</published>
|
|
{{- if .GitInfo }}
|
|
<updated>{{ dateFormat "2006-01-02T15:04:05Z0700" .GitInfo.AuthorDate.Local | safeHTML }}</updated>
|
|
{{- end }}
|
|
<author>{{ .Params.author }}</author>
|
|
<guid isPermaLink="true">{{ .Permalink }}</guid>
|
|
<description>{{ printf `<![CDATA[%s]]>` .Params.description | safeHTML }}</description>
|
|
{{ $content := .Content}}
|
|
{{- if .Params.Cover }}
|
|
{{- $content = (printf `%s%s` (partial "image.html" (dict "path" .Params.Cover "alt" (.Title | plainify) "class" "post-cover")) $content) }}
|
|
{{- end }}
|
|
<content:encoded type="html">{{ printf `<![CDATA[%s]]>` $content | safeHTML }}</content:encoded>
|
|
</item>
|
|
{{ end }}
|
|
</channel>
|
|
</rss>
|
|
|