fianlly it works

This commit is contained in:
Robin Müller 2023-12-09 19:52:32 +01:00
parent 7b227f1475
commit 8b1c60ab8c
Signed by: muellerr
GPG Key ID: A649FB78196E3849
4 changed files with 13 additions and 13 deletions

0
brand.html Normal file
View File

View File

@ -3,26 +3,23 @@ languageCode = 'en-us'
title = 'IRS Satellite Division Software Projects' title = 'IRS Satellite Division Software Projects'
theme = "minimal-theme" theme = "minimal-theme"
[[menus.main]] [menu]
[[menu.main]]
name = 'Home' name = 'Home'
pageRef = '/' pageRef = '/'
weight = 10 weight = 10
[[menus.main]] [[menu.main]]
name = 'Contact' name = 'Contact'
pageRef = 'contact' pageRef = 'contact'
weight = 20 weight = 20
[[menu.main]]
# [[menus.sidebar]] name = 'IRS Website'
# name = 'FSFW' url = 'https://www.irs.uni-stuttgart.de/'
# pageRef = 'fsfw' weight = 30
#weight = 10 [menu.main.params]
blankTarget = true
# [[menus.sidebar]]
# name = 'sat-rs'
# pageRef = 'sat-rs'
# weight = 20
[module] [module]
[[module.mounts]] [[module.mounts]]

View File

@ -1,4 +1,4 @@
<a class="navbar-brand" href="https://www.irs.uni-stuttgart.de/" target="_blank"> <a class="navbar-brand" href="/">
{{ $image := resources.Get "images/unilogo_schriftzug_white.png" }} {{ $image := resources.Get "images/unilogo_schriftzug_white.png" }}
<img src="{{ $image.RelPermalink }}" width=200 height=auto> <img src="{{ $image.RelPermalink }}" width=200 height=auto>
</a> </a>

View File

@ -39,6 +39,9 @@ Renders a menu for the given menu ID.
{{- else if $page.HasMenuCurrent .Menu .}} {{- else if $page.HasMenuCurrent .Menu .}}
{{- $attrs = merge $attrs (dict "class" "ancestor" "aria-current" "true") }} {{- $attrs = merge $attrs (dict "class" "ancestor" "aria-current" "true") }}
{{- end }} {{- end }}
{{- with .Params.blankTarget }}
{{- $attrs = merge $attrs (dict "target" "_blank") }}
{{- end }}
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" aria-current="page" <a class="nav-link" aria-current="page"
{{- range $k, $v := $attrs }} {{- range $k, $v := $attrs }}