Skip to content

Commit

Permalink
Fixing indexes.
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronTraas committed Apr 28, 2024
1 parent b006af5 commit 61759e9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 15 deletions.
5 changes: 1 addition & 4 deletions Adult Beverages/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
---
sections: ["Adult Beverages"]
---

# Adult Beverages

{% assign sections = 'Adult Beverages' | split: ',' -%}
{% include site_index.html %}
6 changes: 1 addition & 5 deletions Tobacco/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
---
sections:
- Tobacco
---

# Tobacco

{% assign sections = 'Tobacco' | split: ',' -%}
{% include site_index.html %}
4 changes: 0 additions & 4 deletions _includes/site_index.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
{% assign current_section = page.path | split: '/' | first -%}
{% if sections == nil -%}
{% assign sections = page.sections -%}
{% endif -%}
<!-- DEBUG: {{sections}} -->

{% for section_name in sections -%}
{% assign section_dir = section_name | replace: ' ', '%20' -%}
Expand Down
4 changes: 2 additions & 2 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ <h2>{{ site.description | default: site.github.project_tagline }}</h2>
</section>

<aside id="sidebar">
{% assign sections = 'Recipes,Adult Beverages,Tobacco' | split: ',' %}
{% include site_index.html %}
{% assign sections = 'Recipes,Adult Beverages,Tobacco' | split: ',' -%}
{% include site_index.html -%}
</aside>

</div>
Expand Down

0 comments on commit 61759e9

Please sign in to comment.