Permalink
Browse files

Generate sitemap.xml from page and posts index

  • Loading branch information...
1 parent 98fcb6c commit e3d9c40da4ce802cf350c87558d46b7b22b9dbf4 Thomas committed Nov 3, 2013
Showing with 34 additions and 1 deletion.
  1. +1 −0 _config.yml
  2. +1 −0 about/index.html
  3. +1 −0 download/index.html
  4. +1 −1 feeds/atom.xml
  5. +1 −0 index.html
  6. +1 −0 news/index.html
  7. +28 −0 sitemap.xml
View
@@ -1,6 +1,7 @@
safe: true
encoding: UTF-8
baseurl: /
+hostname: "http://roundcube.net"
permalink: news/:year/:month/:day/:title
paginate: 6
paginate_path: news/page:num
View
@@ -3,6 +3,7 @@
title: About Roundcube Webmail
navtitle: About
permalink: /
+lastmod: 2013-11-03T15:40:00Z
---
<h1>About the Roundcube webmail project</h1>
View
@@ -3,6 +3,7 @@
title: Roundcube Webmail Downloads
navtitle: Download
permalink: /
+lastmod: 2013-11-03T15:40:00Z
---
<h1>Download your version of Roundcube</h1>
View
@@ -1,6 +1,6 @@
---
layout: nil
-baseurl: "http://roundcube.github.io"
+baseurl: "http://roundcube.net"
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
View
@@ -1,6 +1,7 @@
---
layout: home
title: Roundcube - Free and Open Source Webmail Software
+date: 2013-11-03T15:40:00Z
---
<div id="homescreen">
View
@@ -3,6 +3,7 @@
title: Roundcube Webmail News
navtitle: News
permalink: /
+lastmod: 2013-11-03T15:40:00Z
---
<h1>The Roundcube Project News</h1>
View
@@ -0,0 +1,28 @@
+---
+---
+<?xml version="1.0" encoding="UTF-8"?>
+<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
+{% for page in site.pages %}
+ {% if page.layout != nil %}
+ <url>
+ <loc>{{site.hostname }}{{ page.url | remove:'index.html' }}</loc>
+ {% if page.lastmod != nil %}
+ <lastmod>{{ page.lastmod | date_to_xmlschema }}</lastmod>
+ {% endif %}
+ <changefreq>weekly</changefreq>
+ </url>
+ {% endif %}
+{% endfor %}
+{% for post in site.posts %}
+ <url>
+ <loc>{{site.hostname }}{{ post.url | remove:'index.html' }}</loc>
+ {% if post.lastmod == nil %}
+ <lastmod>{{ post.date | date_to_xmlschema }}</lastmod>
+ {% else %}
+ <lastmod>{{ post.lastmod | date_to_xmlschema }}</lastmod>
+ {% endif %}
+ <changefreq>weekly</changefreq>
+ <priority>1.0</priority>
+ </url>
+{% endfor %}
+</urlset>

0 comments on commit e3d9c40

Please sign in to comment.