From 07562ee7d4870f64df744c651e44cc8e68c8a222 Mon Sep 17 00:00:00 2001 From: James Panther <4462786+jpanther@users.noreply.github.com> Date: Tue, 19 Oct 2021 15:44:23 +1100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=B8=20Make=20main=20menu=20optional?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 4 ++++ layouts/partials/header.html | 32 ++++++++++++++++++-------------- 2 files changed, 22 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a532e80c..5d181965 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), - Slate colour scheme ([#9](https://github.com/jpanther/congo/pull/9)) - Icons for ORCID and ResearchGate ([#9](https://github.com/jpanther/congo/pull/9)) +### Changed + +- Main menu is now optional + ## [1.3.0] - 2021-09-29 ### Added diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 3616b597..63fe8713 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,6 +1,7 @@
+ {{/* Site logo/title */}}
{{ if .Site.Params.Logo -}} {{ $logo := resources.Get .Site.Params.Logo }} @@ -21,18 +22,21 @@ > {{- end }}
- + {{/* Main menu */}} + {{ if .Site.Menus.main }} + + {{ end }}