added basic sitemap page

This commit is contained in:
jklingen 2015-04-04 17:06:25 +02:00
commit f67fe60b6b
2 changed files with 29 additions and 7 deletions

29
pages/sitemap.html Normal file
View file

@ -0,0 +1,29 @@
---
layout: page
title: Sitemap
permalink: /sitemap/
---
<div>
<div>
<h2>Pages</h2>
<ul>
{% for page in site.pages %}
<li><a href="{{ page.url }}">{{ page.title }}</a></li>
{% endfor %}
</ul>
<h2>FAQ</h2>
<ul>
{% for faq in site.faqs %}
<li><a href="{{ faq.url }}">{{ faq.title }}</a></li>
{% endfor %}
</ul>
</div>
<div>
<h2>Blog</h2>
<ul>
{% for post in site.posts %}
<li><a href="{{ post.url }}">{{ post.title }}</a></li>
{% endfor %}
</ul>
</div>
</div>

View file

@ -1,7 +0,0 @@
---
# Remember to set production_url in your _config.yml file!
---
{% for page in site.pages %}
{{site.production_url}}{{ page.url }}{% endfor %}
{% for post in site.posts %}
{{site.production_url}}{{ post.url }}{% endfor %}