Filter Sitemap by version

This commit is contained in:
johndmulhausen
2016-02-23 01:20:17 -08:00
parent 7625150d78
commit d607257ef2
+2
View File
@@ -5,6 +5,7 @@ title: Sitemap
The following is a list of all pages for {{ page.version }}. We also have a [`sitemap.xml`](/sitemap.xml) file.
{% for page in site.pages %}
{% if page.url contains page.version %}
{% assign foundTOC=false %}
{% assign pageTOC=false %}
{% for thistoc in site.data[page.versionfilesafe].globals.tocs %}
@@ -19,4 +20,5 @@ The following is a list of all pages for {{ page.version }}. We also have a [`si
{% endif %}
{% endfor %}
* {% if pageTOC %}**[{{ pageTOC | capitalize }}](/{{page.version}}/{%if pageTOC != "guides"%}{{pageTOC}}/{%endif%})**: {% endif %}[{% if page.title %}{{page.title}}{% else %}{{ page.url }}{% endif %}]({{ page.url }})
{% endif %}
{% endfor %}