diff options
Diffstat (limited to 'examples/blog/layouts/rss.xml')
-rw-r--r-- | examples/blog/layouts/rss.xml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/examples/blog/layouts/rss.xml b/examples/blog/layouts/rss.xml new file mode 100644 index 000000000..7cb7568a6 --- /dev/null +++ b/examples/blog/layouts/rss.xml @@ -0,0 +1,20 @@ +<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> + <channel> + <title>{{ .Title }} on {{ .Site.Title }} </title> + <link>{{ .Permalink }}</link> + <language>en-US</language> + <author>Enthusiastic Hugo User</author> + <rights>Copyright (c) 2014, Enthusiastic Hugo User; all rights reserved.</rights> + <updated>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 MST" }}</updated> + {{ range first 15 .Data.Pages }} + <item> + <title>{{ .Title }}</title> + <link>{{ .Permalink }}</link> + <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 MST" }}</pubDate> + <author>Enthusiastic Hugo User</author> + <guid>{{ .Permalink }}</guid> + <description>{{ .Content | html }}</description> + </item> + {{ end }} + </channel> +</rss>
\ No newline at end of file |