diff options
author | Ralf Geschke <ralf@kuerbis.org> | 2020-12-20 22:35:28 +0300 |
---|---|---|
committer | Ralf Geschke <ralf@kuerbis.org> | 2020-12-20 22:35:28 +0300 |
commit | 113d755770961e4c7bbc4eb53355b9027afe19d1 (patch) | |
tree | 6f49f6e698d7c300b4b4af8c50e11c66192986bc | |
parent | d6bd3c9e40723bdeffb0b1df5807ebdcaf582081 (diff) |
Remove navigation bar code if main menu doesn't existv0.3.1
-rw-r--r-- | CHANGELOG.md | 6 | ||||
-rw-r--r-- | layouts/partials/header_default.html | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b5f476..4e2c8ef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## 0.3.1 - 2020-12-20 + +### Changed + +- Fix: Remove navigation bar code if main menu doesn't exist + ## 0.3.0 - 2020-12-20 ### Changed diff --git a/layouts/partials/header_default.html b/layouts/partials/header_default.html index ef1baff..368d616 100644 --- a/layouts/partials/header_default.html +++ b/layouts/partials/header_default.html @@ -79,7 +79,7 @@ </div> - + {{ if .Site.Menus.main }} <nav id="navbarMain" class="navbar navbar-expand-sm justify-content-between mb-3 {{ .Site.Params.Navbar.ColorScheme }} {{ .Site.Params.Navbar.BgScheme }}" {{ if .Site.Params.Navbar.BackgroundColor }}style="background-color: {{ .Site.Params.Navbar.BackgroundColor }};" {{ end }}role="navigation"> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> @@ -96,6 +96,7 @@ </nav> <!-- end navbar--> + {{ end }} |