modified navaigation and default structure

This commit is contained in:
somrat 2020-01-01 13:11:29 +06:00
parent 448a3a9c30
commit 5cf3041063
2 changed files with 3 additions and 3 deletions

View file

@ -81,7 +81,7 @@
{{safeHTML .Params.head}}
<li data-nav-id="{{.Permalink}}" title="{{.Title}}" class="sidelist
{{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}}">
<a href="{{.Permalink}}">
{{safeHTML .Params.Pre}}{{or .Params.menuTitle .LinkTitle .Title}}{{safeHTML .Params.Post}}

View file

@ -53,10 +53,10 @@
{{ if eq $translation.Lang .Lang }}
{{ $selected := false }}
{{ if eq $pageLang .Lang}}
<option id="{{ $translation.Language }}" value="{{ $translation.URL }}" selected>{{ .LanguageName }}
<option id="{{ $translation.Language }}" value="{{ $translation.Permalink }}" selected>{{ .LanguageName }}
</option>
{{ else }}
<option id="{{ $translation.Language }}" value="{{ $translation.URL }}">{{ .LanguageName }}</option>
<option id="{{ $translation.Language }}" value="{{ $translation.Permalink }}">{{ .LanguageName }}</option>
{{ end }}
{{ end }}
{{ end }}