hugo

Fork of github.com/gohugoio/hugo with reverse pagination support

git clone git://git.shimmy1996.com/hugo.git

index.rss.xml (1881B)

    1 <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    2   <channel>
    3     <title>{{ .Site.Title }} – {{ .Title }}</title>
    4     <link>{{ .Permalink }}</link>
    5     <description>Recent Hugo news from gohugo.io</description>
    6     <generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
    7     <language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
    8     <managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}
    9     <webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
   10     <copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
   11     <lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
   12     <image>
   13       <url>{{ "img/hugo.png" | absURL }}</url>
   14       <title>GoHugo.io</title>
   15       <link>{{ .Permalink }}</link>
   16     </image>
   17     {{ with .OutputFormats.Get "RSS" }}
   18 	{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
   19     {{ end }}
   20     {{ range first 50 (where .Site.RegularPages "Type" "in" (slice "news" "showcase")) }}
   21     <item>
   22       <title>{{ .Section | title }}: {{ .Title }}</title>
   23       <link>{{ .Permalink }}</link>
   24       <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
   25       {{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
   26       <guid>{{ .Permalink }}</guid>
   27       <description>
   28         {{ $img := (.Resources.ByType "image").GetMatch "*featured*" }}
   29         {{ with $img }}
   30         {{ $img := .Resize "640x" }}
   31         {{ printf "<![CDATA[<img src=\"%s\" width=\"%d\" height=\"%d\"/>]]>" $img.Permalink $img.Width $img.Height | safeHTML }}
   32         {{ end }}
   33         {{ .Content | html }}
   34       </description>
   35     </item>
   36     {{ end }}
   37   </channel>
   38 </rss>