forked from TrueCloudLab/dot-hugo
modified navaigation and default structure
This commit is contained in:
parent
448a3a9c30
commit
5cf3041063
2 changed files with 3 additions and 3 deletions
|
@ -81,7 +81,7 @@
|
||||||
{{safeHTML .Params.head}}
|
{{safeHTML .Params.head}}
|
||||||
<li data-nav-id="{{.Permalink}}" title="{{.Title}}" class="sidelist
|
<li data-nav-id="{{.Permalink}}" title="{{.Title}}" class="sidelist
|
||||||
{{if .IsAncestor $currentNode }}parent{{end}}
|
{{if .IsAncestor $currentNode }}parent{{end}}
|
||||||
{{with .File}} {{if eq .UniqueID $currentNode.UniqueID}}active{{end}} {{ end }}
|
{{if eq .File.UniqueID $currentNode.File.UniqueID}}active{{end}}
|
||||||
{{if .Params.alwaysopen}}parent{{end}}">
|
{{if .Params.alwaysopen}}parent{{end}}">
|
||||||
<a href="{{.Permalink}}">
|
<a href="{{.Permalink}}">
|
||||||
{{safeHTML .Params.Pre}}{{or .Params.menuTitle .LinkTitle .Title}}{{safeHTML .Params.Post}}
|
{{safeHTML .Params.Pre}}{{or .Params.menuTitle .LinkTitle .Title}}{{safeHTML .Params.Post}}
|
||||||
|
|
|
@ -53,10 +53,10 @@
|
||||||
{{ if eq $translation.Lang .Lang }}
|
{{ if eq $translation.Lang .Lang }}
|
||||||
{{ $selected := false }}
|
{{ $selected := false }}
|
||||||
{{ if eq $pageLang .Lang}}
|
{{ if eq $pageLang .Lang}}
|
||||||
<option id="{{ $translation.Language }}" value="{{ $translation.URL }}" selected>{{ .LanguageName }}
|
<option id="{{ $translation.Language }}" value="{{ $translation.Permalink }}" selected>{{ .LanguageName }}
|
||||||
</option>
|
</option>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<option id="{{ $translation.Language }}" value="{{ $translation.URL }}">{{ .LanguageName }}</option>
|
<option id="{{ $translation.Language }}" value="{{ $translation.Permalink }}">{{ .LanguageName }}</option>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in a new issue