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'
|
||||
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]]
|
||||
|
@ -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" }}
|
||||
<img src="{{ $image.RelPermalink }}" width=200 height=auto>
|
||||
</a>
|
||||
|
@ -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 }}
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" aria-current="page"
|
||||
{{- range $k, $v := $attrs }}
|
||||
|
Loading…
Reference in New Issue
Block a user