From 4905337d7c9697db39dea73c16b1dc0767653134 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 23 Mar 2022 09:56:23 +0300 Subject: navbar: move the hide condition to the navbar include --- _includes/common/header.html | 4 +--- _includes/common/navbar.html | 2 ++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/_includes/common/header.html b/_includes/common/header.html index b43a592..07ba1c5 100644 --- a/_includes/common/header.html +++ b/_includes/common/header.html @@ -76,7 +76,5 @@
- {% unless site.settings.navbar.hide or page.navbar.hide %} - {% include common/navbar.html %} - {% endunless %} + {% include common/navbar.html %}
diff --git a/_includes/common/navbar.html b/_includes/common/navbar.html index 8640633..67db12e 100644 --- a/_includes/common/navbar.html +++ b/_includes/common/navbar.html @@ -1,3 +1,4 @@ +{% unless site.settings.navbar.hide or page.navbar.hide %} +{% endunless %} -- cgit v1.2.3