Skip to content

Commit

Permalink
fix buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
stmorse committed Sep 4, 2024
1 parent f87f252 commit dc3961c
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,17 @@
{% assign next_page = null %}
{% assign found = false %}

{% for item in site.data.navigation %}
{% if item.children %}
{% for child in item.children %}
{% for parent in site.data.navigation %}
{% if parent.children %}
{% for child in parent.children %}
{% if child.url %}
{% if child.url == page.url %}
{% assign found = true %}
{% elsif found %}
{% if found %}
{% assign next_page = child %}
{% break %}
{% endif %}

{% if child.url == page.url %}
{% assign found = true %}
{% else %}
{% assign prev_page = child %}
{% endif %}
Expand Down

0 comments on commit dc3961c

Please sign in to comment.