38 lines
No EOL
1.6 KiB
XML
38 lines
No EOL
1.6 KiB
XML
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1" xmlns:content="http://purl.org/rss/1.0/modules/content" xmlns:media="http://search.yahoo.com/mrss/">
|
|
<channel>
|
|
<title>
|
|
{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} by {{ end }}
|
|
{{ .Site.Title }}{{ end }}
|
|
</title>
|
|
<link>{{ .Permalink }}</link>
|
|
<description>Recent videos by MMaker</description>
|
|
<generator>Hugo -- gohugo.io</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 }}
|
|
{{ $pages := (where .Site.RegularPages "Params.thumb" "!=" nil).ByDate.Reverse }}
|
|
{{ range first 20 $pages }}
|
|
{{ if not .Date.IsZero }}
|
|
<item>
|
|
<title>{{ .Title }}</title>
|
|
<link>{{ .Params.link }}</link>
|
|
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
|
<guid>{{ .Params.link }}</guid>
|
|
<media:content medium="image" url="{{ .Params.thumb | absURL }}"/>
|
|
<description></description>
|
|
</item>
|
|
{{ end }}
|
|
{{ end }}
|
|
</channel>
|
|
</rss>
|
|
|