diff --git a/CHANGELOG.md b/CHANGELOG.md index 12086a65..d09dfaad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), - Upgrade to Tailwind v3.1.4 ([#225](https://github.com/jpanther/congo/pull/225)) +### Fixed + +- Search would not appear in header if main menu had no links to display + ## [2.2.3] - 2022-06-22 ### Changed diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 06a0f63f..82813460 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -27,20 +27,22 @@ {{ partial "translations.html" . }} {{/* Main menu */}} - {{ if .Site.Menus.main }} + {{ if or .Site.Menus.main (.Site.Params.enableSearch | default false) }}