Skip to content

Commit

Permalink
Hide index
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronTraas committed Apr 29, 2024
1 parent f9549db commit fd5037a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion _includes/site_index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{% assign current_section = page.path | split: '/' | first -%}
{% assign page_blacklist = 'index.html,README.md' | split: ',' -%}

{% for section_name in sections -%}
{% assign section_dir = section_name | replace: ' ', '%20' -%}
Expand All @@ -15,8 +16,10 @@ <h2><a href="{{ section_dir | relative_url }}/">{{section_name}}</a></h2>
{% if segments contains 'Untested' -%}
<!-- Untested: {{page.url}} -->
{% else -%}
{% if page_blacklist contains page.name -%}
{% else -%}
<li><a href="{{ page.url | relative_url }}">{{page.title}}</a></li>
<!-- Page name: {{page.name}} -->
{% endif -%}
{% endif -%}
{% endif -%}
{% endfor -%}
Expand Down

0 comments on commit fd5037a

Please sign in to comment.