1.5 KiB
title | date | groups | groups_weight | |
---|---|---|---|---|
RSS (feed) Templates | 2013-07-01 |
|
40 |
A single RSS template is used to generate all of the RSS content for the entire site.
RSS pages are of the type "node" and have all the node variables available to use in the templates.
In addition to the standard node variables, the homepage has access to all site content accessible from .Data.Pages
▾ layouts/
rss.xml
rss.xml
This rss template is used for spf13.com. It adheres to the ATOM 2.0 Spec.
{{% highlight xml %}} {{ .Permalink }} en-us Steve Francia Copyright (c) 2008 - 2013, Steve Francia; all rights reserved. {{ .Date }} {{ range .Data.Pages }} {{ .Permalink }} {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 MST" }} Steve Francia {{ .Permalink }} {{ .Content | html }} {{ end }} {{% /highlight %}}
Important: Hugo will automatically add the following header line to this file on render...please don't include this in the template as it's not valid HTML.
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>