Skip to content

Commit

Permalink
Removing Untested
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronTraas committed Apr 27, 2024
1 parent e0f8836 commit 77b2fc9
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,34 +35,21 @@ <h2>{{ site.description | default: site.github.project_tagline }}</h2>
</section>

<aside id="sidebar">

{% 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>
<ul>
{% for page in site.pages | sort: 'title' %}
{% assign section = page.dir | remove_first: '/' | split: '/' | first %}
{% if section == section_dir %}
{% if page.dir contains 'Untested' %}
<!-- Untested: {{page.dir}} -->
{% elseif section == section_dir and %}
<li><a href="/Notes{{page.url}}">{{page.title}}</a></li>
{% else %}
<!-- li>[{{page.dir | remove_first: '/' | split: '/' | join: ','}}]</li -->
{% endif %}
{% endfor %}
</ul>
{% endfor %}

<h2><a href="/Notes/Adult Beverages/">Adult Beverages</a></h2>
<ul>
{% for page in site.pages | sort: 'dir' %}
{% assign section = page.dir | remove_first: '/' | split: '/' | first %}
{% if section == "Adult%20Beverages" %}
<li><a href="/Notes{{page.url}}">{{page.title}}</a></li>
{% else %}
<!-- li>[{{page.dir | remove_first: '/' | split: '/' | join: ','}}]</li -->
{% endif %}
{% endfor %}
</ul>
</aside>

</div>
Expand Down

0 comments on commit 77b2fc9

Please sign in to comment.