Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronTraas committed Apr 27, 2024
1 parent 6400043 commit fcd03e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ <h2>{{ site.description | default: site.github.project_tagline }}</h2>
{% assign sections = 'Recipes,Adult Beverages,Tobacco' | split: ',' %}
{% for section_name in sections %}
{% assign section_dir = section_name | replace: ' ', '%20' %}
<h2><a href="/Notes/{{section_dir}}/">{{section_name}}</a></h2>
<h2><a href="{{ section_dir | relative_url }}/">{{section_name}}</a></h2>
<ul>
{% for page in site.pages | sort: 'name' %}
{% assign segments = page.dir | remove_first: '/' | split: '/' %}
{% assign section = segments | first %}
{% if segments contains 'Untested' %}
<!-- Untested: {{page.dir}} -->
{% elsif section == section_dir %}
<li><a href="/Notes{{page.url}}">{{page.title}}</a></li>
<li><a href="{{ page.url | relative_url }}">{{page.title}}</a></li>
{% endif %}
{% endfor %}
</ul>
Expand Down

0 comments on commit fcd03e2

Please sign in to comment.