From 84e5e4697163d9c50f2b06c25fdc052f95117ea6 Mon Sep 17 00:00:00 2001 From: James Panther <4462786+jpanther@users.noreply.github.com> Date: Sat, 25 Jun 2022 10:40:24 +1000 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20search=20not=20showing=20w?= =?UTF-8?q?hen=20main=20menu=20empty?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 4 ++++ layouts/partials/header.html | 24 +++++++++++++----------- 2 files changed, 17 insertions(+), 11 deletions(-) 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) }}