Permalink
Switch branches/tags
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (12 sloc) 679 Bytes

Sitemap

{% assign pages = page.static_files | where_exp:'page','page.name != "404.html"' %} {% assign collections = site.collections | where_exp:'collection','collection.output != false' %} {% for collection in collections %} {% assign docs = collection.docs | where_exp:'doc','doc.sitemap != false' %} {% assign pages = pages | concat: docs %} {% endfor %}

{% assign site_pages = site.html_pages | where_exp:'doc','doc.sitemap != false' | where_exp:'doc','doc.url != "/404.html"' %} {% assign pages = pages | concat: site_pages | sort: "url" %} {% for page in pages %}

  • [{{ page.url }}]({{ page.url | replace:'/index.html','/' }}) {% endfor %}