Merge pull request 'Revert last change' (#26) from hotfix/fix-menu-on-subpath-deployed-sites into main

Reviewed-on: stiebke/hugo-internet-weblog#26
This commit is contained in:
Stephan Hadan 2025-01-29 12:11:53 +01:00
commit 9ebc3a3392

View file

@ -7,9 +7,9 @@
<ul>
{{ range .Site.Menus.main }}
<li>
<a href="{{.RelPermalink}}">{{ .Name }}</a>
<a href="{{.URL}}">{{ .Name }}</a>
{{ if in ($.Scratch.Get "sections") .Name }}
<a href="{{.RelPermalink}}index.xml"><img src="/img/rss.svg" class="rss-icon" /></a>
<a href="{{.URL}}index.xml"><img src="/img/rss.svg" class="rss-icon" /></a>
{{ end }}
</li>
{{ end }}
@ -19,7 +19,7 @@
<ul>
{{ range .Site.Menus.main }}
<li>
<a href="{{.RelPermalink}}">{{ .Name }}</a>
<a href="{{.URL}}">{{ .Name }}</a>
</li>
{{ end }}
{{ with .Site.Params.Author.aboutpage }}<li><a href="{{ . }}">Über</a></li>{{ end }}