--- ### ALL PAGES ### layout: themes/classy/frontend/core/minimal permalink: /sitemap ### REGULAR PAGES ### sitemap: # include: false meta: title: "Sitemap - {{ site.brand.name }}" description: "This sitemap has been compiled to better serve those who are looking for a specific page on {{ site.brand.name }}." breadcrumb: "Sitemap" # index: false ### WEB MANAGER CONFIG ### web_manager: exitPopup: enabled: false --- {% assign all_pages = site.pages %} {% for collection in site.collections %} {% assign all_pages = all_pages | concat: collection.docs %} {% endfor %} {% comment %} Build a hash of pages organized by their path segments {% endcomment %} {% assign sitemap_sections = "" | split: "" %} {% assign processed_paths = "" | split: "" %} {% for page in all_pages %} {%- if page.url contains '/_' -%} {%- continue -%} {%- endif -%} {%- assign url_start = page.url | slice: 0, 5 -%} {%- if url_start == '/test' -%} {%- continue -%} {%- endif -%} {%- if page.layout contains 'redirect' -%} {%- continue -%} {%- endif -%} {%- if page.resolved.sitemap.include == false or page.layout_data.sitemap.include == false -%} {%- continue -%} {%- endif -%} {%- if page.draft -%} {%- continue -%} {%- endif -%} {%- if page.url contains '.js' or page.url contains '.xml' or page.url contains '.json' -%} {%- continue -%} {%- endif -%} {% assign url_parts = page.url | split: '/' %} {% assign section_name = "Root pages" %} {% if url_parts.size > 2 %} {% assign section_name = url_parts[1] | replace: '-', ' ' | replace: '_', ' ' | capitalize %} {% endif %} {% unless processed_paths contains section_name %} {% assign processed_paths = processed_paths | push: section_name %} {% endunless %} {% endfor %} {% assign sorted_sections = processed_paths | sort %}
Browse all pages on {{ site.brand.name }}
{% for section in sorted_sections %}