fianlly it works
This commit is contained in:
parent
7b227f1475
commit
8b1c60ab8c
0
brand.html
Normal file
0
brand.html
Normal file
21
hugo.toml
21
hugo.toml
@ -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]]
|
||||||
|
@ -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>
|
||||||
|
@ -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 }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user