From e732605062f01d73f3d20b6498b734d161e9dd1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Tue, 26 Dec 2023 11:29:03 +0100 Subject: [PATCH] Update navbar.html MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Copy the upstream file and change just the necessary parts to have the same content as before. Switches to have the main menu declared in Hugo's config file. Signed-off-by: Kévin Commaille --- config.toml | 15 ++++++ layouts/partials/navbar.html | 93 +++++++++++++++++++++++++----------- 2 files changed, 79 insertions(+), 29 deletions(-) diff --git a/config.toml b/config.toml index 1db895ae..5d74ed38 100644 --- a/config.toml +++ b/config.toml @@ -20,6 +20,21 @@ languageName ="English" # Weight used for sorting. weight = 1 +# Entries in the main menu in the header. +[menus] +[[menus.main]] + name = 'Foundation' + url = 'https://matrix.org/foundation/' + weight = 10 +[[menus.main]] + name = 'FAQs' + url = 'https://matrix.org/faq' + weight = 20 +[[menus.main]] + name = 'Blog' + url = 'https://matrix.org/blog/posts' + weight = 30 + [markup] [markup.goldmark] [markup.goldmark.renderer] diff --git a/layouts/partials/navbar.html b/layouts/partials/navbar.html index e78ee9c4..db6a982a 100644 --- a/layouts/partials/navbar.html +++ b/layouts/partials/navbar.html @@ -6,39 +6,74 @@ */}} -{{ $cover := .HasShortcode "blocks/cover" }} - - {{ define "partials/version-string" }} {{ $ret := "unstable version"}}