aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_includes/common
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-03-23 09:56:23 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2022-03-23 09:56:23 +0300
commit4905337d7c9697db39dea73c16b1dc0767653134 (patch)
treeb9df420d639b570aa3d47d23a2892f3a86c7db05 /_includes/common
parentindex.html: remove navbar icons, it's cringe (diff)
downloadjekyll-theme-4905337d7c9697db39dea73c16b1dc0767653134.tar.gz
jekyll-theme-4905337d7c9697db39dea73c16b1dc0767653134.zip
navbar: move the hide condition to the navbar include
Diffstat (limited to '')
-rw-r--r--_includes/common/header.html4
-rw-r--r--_includes/common/navbar.html2
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 @@
</head>
<body>
<div style="display: flex; flex-direction: column; min-height: 100vh;">
- {% unless site.settings.navbar.hide or page.navbar.hide %}
- {% include common/navbar.html %}
- {% endunless %}
+ {% include common/navbar.html %}
<div class="container" style="flex: 1;">
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 %}
<nav class="navbar navbar-default navbar-static-top">
<div class="container">
<div class="navbar-header">
@@ -62,3 +63,4 @@
</div>
</div>
</nav>
+{% endunless %}