Added pages to sitemap.xml

This commit is contained in:
Oliver Davies 2015-04-13 01:41:31 +01:00
parent 153ef9c718
commit 4f20b44a93
2 changed files with 19 additions and 0 deletions

View file

@ -1,2 +1,3 @@
title: Oliver Davies title: Oliver Davies
subtitle: Drupal & Linux Specialist subtitle: Drupal & Linux Specialist
url: http://localhost:8000

View file

@ -11,6 +11,24 @@ use:
<changefreq>daily</changefreq> <changefreq>daily</changefreq>
<priority>0.8</priority> <priority>0.8</priority>
</url> </url>
{% set pages = { 0: 'accessibility', 1: 'blog', 2: 'company-information', 3: 'contact', 4: 'services', 5: 'talks', 6: 'work' } %}
{% for page in pages %}
<url>
<loc>{{ site.url }}/{{ page }}</loc>
<lastmod>{{ site.calculated_date | date('Y-m-d') }}</lastmod>
<changefreq>monthly</changefreq>
<priority>0.6</priority>
</url>
{% endfor %}
<url>
<loc>{{ site.url }}/blog</loc>
<lastmod>{{ site.calculated_date | date('Y-m-d') }}</lastmod>
<changefreq>monthly</changefreq>
<priority>0.8</priority>
</url>
{% for post in data.posts %} {% for post in data.posts %}
<url> <url>
<loc>{{ site.url }}{{ post.url }}</loc> <loc>{{ site.url }}{{ post.url }}</loc>