Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCameron Moore <moorereason@gmail.com>2017-02-26 02:12:08 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-02-26 23:47:05 +0300
commit8d5132229f7b12aef2483d19ed3c7fdc5c2b6a91 (patch)
treeb1fab1e89a4bda3dfa66aeb9416546a3f68ccdca /examples
parent0eb76b0863666ee99b8643a37bcb46eb1c4a8043 (diff)
docs: Update RSS docs with rssLimit changes
Side effect: remove unnecessary XML templates from example blog site. Fixes #3065
Diffstat (limited to 'examples')
-rw-r--r--examples/blog/layouts/rss.xml20
-rw-r--r--examples/blog/layouts/sitemap.xml10
2 files changed, 0 insertions, 30 deletions
diff --git a/examples/blog/layouts/rss.xml b/examples/blog/layouts/rss.xml
deleted file mode 100644
index 7cb7568a6..000000000
--- a/examples/blog/layouts/rss.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-<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
diff --git a/examples/blog/layouts/sitemap.xml b/examples/blog/layouts/sitemap.xml
deleted file mode 100644
index 005824255..000000000
--- a/examples/blog/layouts/sitemap.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
- {{ range .Data.Pages }}
- <url>
- <loc>{{ .Permalink }}</loc>{{ if not .Lastmod.IsZero }}
- <lastmod>{{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) }}</lastmod>{{ end }}{{ with .Sitemap.ChangeFreq }}
- <changefreq>{{ . }}</changefreq>{{ end }}{{ if ge .Sitemap.Priority 0.0 }}
- <priority>{{ .Sitemap.Priority }}</priority>{{ end }}
- </url>
- {{ end }}
-</urlset>