Another try to fix menu on subpath deployed sites
This commit is contained in:
parent
e38272bd79
commit
5b188e8fcd
1 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
<header>
|
||||
<nav>
|
||||
<h1><a href="{{.Site.BaseURL}}">@{{ .Site.Params.Author.handle }}</a> {{ .Site.Title }}.</h1>
|
||||
<h1><a href="{{.site.Home.RelPermalink}}">@{{ .Site.Params.Author.handle }}</a> {{ .Site.Title }}.</h1>
|
||||
<div class="menu">
|
||||
{{ if isset .Site.Params "rsssections" }}
|
||||
{{ $.Scratch.Add "sections" .Site.Params.rsssections }}
|
||||
|
@ -13,7 +13,7 @@
|
|||
{{ end }}
|
||||
</li>
|
||||
{{ end }}
|
||||
{{ with .Site.Params.Author.aboutpage }}<li><a href="{{ . }}">Über</a></li>{{ end }}
|
||||
{{ with .Site.Params.Author.aboutpage }}<li><a href="{{.site.Home.RelPermalink}}{{ . }}">Über</a></li>{{ end }}
|
||||
</ul>
|
||||
{{ else }}
|
||||
<ul>
|
||||
|
@ -22,7 +22,7 @@
|
|||
<a href="{{.URL}}">{{ .Name }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
{{ with .Site.Params.Author.aboutpage }}<li><a href="{{ . }}">Über</a></li>{{ end }}
|
||||
{{ with .Site.Params.Author.aboutpage }}<li><a href="{{.site.Home.RelPermalink}}{{ . }}">Über</a></li>{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue