Filter Sitemap by version
This commit is contained in:
@@ -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 %}
|
||||
Reference in New Issue
Block a user