From f87f252a81243c2784440e750575851c30eb4162 Mon Sep 17 00:00:00 2001 From: Steven Morse Date: Wed, 4 Sep 2024 12:34:05 -0400 Subject: [PATCH] fix buttons --- _layouts/default.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/_layouts/default.html b/_layouts/default.html index a3b50b3..18ca578 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -48,14 +48,14 @@ {% for item in site.data.navigation %} {% if item.children %} {% for child in item.children %} - {% if item.url %} - {% if item.url == page.url %} + {% if child.url %} + {% if child.url == page.url %} {% assign found = true %} {% elsif found %} - {% assign next_page = item %} + {% assign next_page = child %} {% break %} {% else %} - {% assign prev_page = item %} + {% assign prev_page = child %} {% endif %} {% endif %} {% endfor %}