From fb43726ba051081c87a42516b773f4a7e52d345a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=A2=E5=85=8B?= Date: Wed, 20 Mar 2013 12:12:06 +0800 Subject: [PATCH] sitemap.xml --- _posts/sitemap.xml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 _posts/sitemap.xml diff --git a/_posts/sitemap.xml b/_posts/sitemap.xml new file mode 100644 index 0000000..2234d5d --- /dev/null +++ b/_posts/sitemap.xml @@ -0,0 +1,28 @@ +--- +layout: nil +--- + + + {% for post in site.posts %} + + {{ site.baseurl }}{{ post.url }} + {% if post.lastmod == null %} + {{ post.date | date_to_xmlschema }} + {% else %} + {{ post.lastmod | date_to_xmlschema }} + {% endif %} + weekly + 1.0 + + {% endfor %} + {% for page in site.pages %} + {% if page.sitemap != null and page.sitemap != empty %} + + {{ site.baseurl }}{{ page.url }} + {{ page.sitemap.lastmod | date_to_xmlschema }} + {{ page.sitemap.changefreq }} + {{ page.sitemap.priority }} + + {% endif %} + {% endfor %} + \ No newline at end of file