From 8b1c60ab8c35f904c2f3d6fc8ae77035bc67a094 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Sat, 9 Dec 2023 19:52:32 +0100 Subject: [PATCH] fianlly it works --- brand.html | 0 hugo.toml | 21 ++++++++----------- layouts/partials/header/brand.html | 2 +- .../minimal-theme/layouts/partials/menu.html | 3 +++ 4 files changed, 13 insertions(+), 13 deletions(-) create mode 100644 brand.html diff --git a/brand.html b/brand.html new file mode 100644 index 0000000..e69de29 diff --git a/hugo.toml b/hugo.toml index aefc720..6effed7 100644 --- a/hugo.toml +++ b/hugo.toml @@ -3,26 +3,23 @@ languageCode = 'en-us' title = 'IRS Satellite Division Software Projects' theme = "minimal-theme" -[[menus.main]] +[menu] +[[menu.main]] name = 'Home' pageRef = '/' weight = 10 -[[menus.main]] +[[menu.main]] name = 'Contact' pageRef = 'contact' weight = 20 - -# [[menus.sidebar]] -# name = 'FSFW' -# pageRef = 'fsfw' -#weight = 10 - -# [[menus.sidebar]] -# name = 'sat-rs' -# pageRef = 'sat-rs' -# weight = 20 +[[menu.main]] +name = 'IRS Website' +url = 'https://www.irs.uni-stuttgart.de/' +weight = 30 +[menu.main.params] +blankTarget = true [module] [[module.mounts]] diff --git a/layouts/partials/header/brand.html b/layouts/partials/header/brand.html index 52c3839..6fa326e 100644 --- a/layouts/partials/header/brand.html +++ b/layouts/partials/header/brand.html @@ -1,4 +1,4 @@ - + {{ $image := resources.Get "images/unilogo_schriftzug_white.png" }} diff --git a/themes/minimal-theme/layouts/partials/menu.html b/themes/minimal-theme/layouts/partials/menu.html index 911fd6f..a3dc290 100644 --- a/themes/minimal-theme/layouts/partials/menu.html +++ b/themes/minimal-theme/layouts/partials/menu.html @@ -39,6 +39,9 @@ Renders a menu for the given menu ID. {{- else if $page.HasMenuCurrent .Menu .}} {{- $attrs = merge $attrs (dict "class" "ancestor" "aria-current" "true") }} {{- end }} + {{- with .Params.blankTarget }} + {{- $attrs = merge $attrs (dict "target" "_blank") }} + {{- end }}