diff --git a/docs/_layouts/page.html b/docs/_layouts/page.html index 3675251..569a764 100644 --- a/docs/_layouts/page.html +++ b/docs/_layouts/page.html @@ -25,11 +25,11 @@ {%- assign pages_with_sections = "" | split: "" -%} {%- for section in first_level -%} - {%- if section.name == "" or section.name == nil -%} - {%- assign pages_without_sections = pages_without_sections | concat: section.items -%} - {%- else -%} - {%- assign pages_with_sections = pages_with_sections | push: section -%} - {%- endif -%} +{%- if section.name == "" or section.name == nil -%} +{%- assign pages_without_sections = pages_without_sections | concat: section.items -%} +{%- else -%} +{%- assign pages_with_sections = pages_with_sections | push: section -%} +{%- endif -%} {%- endfor -%} {%- comment -%} @@ -41,28 +41,28 @@ {%- assign ordered_sections = "" | split: "" -%} {%- for section_name in section_order -%} - {%- for section in pages_with_sections -%} - {%- if section.name == section_name -%} - {%- assign ordered_sections = ordered_sections | push: section -%} - {%- break -%} - {%- endif -%} - {%- endfor -%} +{%- for section in pages_with_sections -%} +{%- if section.name == section_name -%} +{%- assign ordered_sections = ordered_sections | push: section -%} +{%- break -%} +{%- endif -%} +{%- endfor -%} {%- endfor -%} {%- comment -%} Add any sections not in the manual order list at the end {%- endcomment -%} {%- for section in pages_with_sections -%} - {%- assign found = false -%} - {%- for ordered_section in ordered_sections -%} - {%- if section.name == ordered_section.name -%} - {%- assign found = true -%} - {%- break -%} - {%- endif -%} - {%- endfor -%} - {%- unless found -%} - {%- assign ordered_sections = ordered_sections | push: section -%} - {%- endunless -%} +{%- assign found = false -%} +{%- for ordered_section in ordered_sections -%} +{%- if section.name == ordered_section.name -%} +{%- assign found = true -%} +{%- break -%} +{%- endif -%} +{%- endfor -%} +{%- unless found -%} +{%- assign ordered_sections = ordered_sections | push: section -%} +{%- endunless -%} {%- endfor -%}