Skip to content

Commit

Permalink
Updated sitemap
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjlockwood committed Jan 5, 2014
1 parent 31013d9 commit 98152fe
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,21 @@
<url>
<loc>{{ site.baseurl }}</loc>
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
<changefreq>weekly</changefreq>
<changefreq>monthly</changefreq>
<priority>1.0</priority>
</url>

<!-- Posts -->
{% for post in site.posts %}<url>
<loc>{{ site.baseurl }}{{ post.url }}</loc>
<lastmod>{% if post.updated == null %}{{ post.date | date: '%Y-%m-%d' }}{% else %}{{ post.updated | date: '%Y-%m-%d' }}{% endif %}</lastmod>
<changefreq>weekly</changefreq>
<changefreq>monthly</changefreq>
<priority>0.9</priority>
</url>{% endfor %}

<!-- Pages (TODO: fix this later) -->
{% for page in site.pages %}
{% if page.sitemap != null and page.sitemap != empty %}
<url>
<loc>{{ site.baseurl }}{{ page.url }}</loc>
<lastmod>{{ page.sitemap.lastmod | date_to_xmlschema }}</lastmod>
<changefreq>{{ page.sitemap.changefreq }}</changefreq>
<priority>{{ page.sitemap.priority }}</priority>
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
<changefreq>monthly</changefreq>
<priority>0.8</priority>
</url>
{% endif %}
{% endfor %}
</urlset>

0 comments on commit 98152fe

Please sign in to comment.