From 58183b8a1554ccee408c4f1b95e575bed772b5eb Mon Sep 17 00:00:00 2001 From: Dean Attali Date: Wed, 16 Sep 2020 23:47:06 +0000 Subject: [PATCH] fix bug where navbar burger button didn't always revert to the correct light one --- _includes/nav.html | 5 +++++ assets/js/beautifuljekyll.js | 2 ++ 2 files changed, 7 insertions(+) diff --git a/_includes/nav.html b/_includes/nav.html index c932d0e..b594ec2 100644 --- a/_includes/nav.html +++ b/_includes/nav.html @@ -31,6 +31,11 @@ {%- endif -%} {%- endfor -%} + {% if page.navbar-extra %} + {% for file in page.navbar-extra %} + {% include {{ file }} %} + {% endfor %} + {% endif %} {% if site.avatar and page.show-avatar != false %} diff --git a/assets/js/beautifuljekyll.js b/assets/js/beautifuljekyll.js index 9c5ca38..bcddc67 100644 --- a/assets/js/beautifuljekyll.js +++ b/assets/js/beautifuljekyll.js @@ -39,6 +39,8 @@ var BeautifulJekyllJS = { ) / 1000); if (brightness <= 125) { $(".navbar").removeClass("navbar-light").addClass("navbar-dark"); + } else { + $(".navbar").removeClass("navbar-dark").addClass("navbar-light"); } },