<nav id="sidebar" class="{{ if $.Site.Params.showVisitedLinks }}showVisitedLinks{{ end }}"> {{ $showvisitedlinks := .Site.Params.showVisitedLinks }} <div id="header-wrapper"> {{ partial "logo.html" . }} {{ if not .Site.Params.disableSearch }} {{ partial "search.html" . }} <div class="highlightable"> {{ $orderByTitle := (eq .Site.Params.ordersectionsby "title") }} {{ $sections := cond $orderByTitle .Site.Home.Sections.ByTitle .Site.Home.Sections.ByWeight }} {{ template "section-tree-nav" dict "sect" . "currentnode" $currentNode "showvisitedlinks" $showvisitedlinks }} {{ $disableShortcutsTitle := .Site.Params.DisableShortcutsTitle }} {{ with .Site.Menus.shortcuts }} <h3>{{ if not $disableShortcutsTitle }}{{ T "Shortcuts-Title" }}{{ end }}</h3> {{ range sort . "Weight" }} {{ .Pre }}<a class="padding" {{ printf "href=%q" .URL | safeHTMLAttr }}>{{ safeHTML .Name }}</a>{{ .Post }} {{ if or .Site.IsMultiLingual $showvisitedlinks }} {{ if and .Site.IsMultiLingual (not .Site.Params.DisableLanguageSwitchingButton) }} <i class="fas fa-language fa-fw"></i> <div class="select-style"> <select id="select-language" onchange="location = this.value;"> {{ $siteLanguages := .Site.Languages }} {{ $pageLang := .Page.Lang }} {{ range .Page.AllTranslations }} {{ range $siteLanguages }} {{ if eq $translation.Lang .Lang }} id="{{ $translation.Language }}" value="{{ $translation.RelPermalink }}" {{ if eq $pageLang .Lang }}selected{{ end }} >{{ .LanguageName }}</option> <svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="255px" height="255px" viewBox="0 0 255 255" style="enable-background:new 0 0 255 255;" xml:space="preserve"> <polygon points="0,63.75 127.5,191.25 255,63.75 " /> {{ if $showvisitedlinks }} <li><a class="padding" href="#" data-clear-history-toggle=""><i class="fas fa-history fa-fw"></i> {{ T "Clear-History" }}</a></li> {{ partial "menu-footer.html" . }} {{ define "section-tree-nav" }} {{ $showvisitedlinks := .showvisitedlinks }} {{ $currentNode := .currentnode }} {{ safeHTML .Params.head }} <li data-nav-id="{{ .RelPermalink }}" title="{{ .Title }}" class="dd-item {{- if .IsAncestor $currentNode }} parent{{ end -
}} {{- if and (eq .File.UniqueID $currentNode.File.UniqueID) }} active{{ end -
}} {{- if .Params.alwaysopen }} parent{{ end }}"> <a href="{{ .RelPermalink }}"> {{ safeHTML .Params.Pre }}{{ or .Params.menuTitle .LinkTitle .Title }}{{ safeHTML .Params.Post }} {{ if $showvisitedlinks }} <i class="fas read-icon"></i> {{ $numberOfPages := (add (len .Pages) (len .Sections)) }} {{ if ne $numberOfPages 0 }} {{ $currentNode.Scratch.Set "pages" .Pages }} {{ $currentNode.Scratch.Set "pages" (.Pages | union .Sections) }} {{ $pages := ($currentNode.Scratch.Get "pages") }} {{ if eq .Site.Params.ordersectionsby "title" }} {{ range $pages.ByTitle }} {{ if and .Params.hidden (not $.showhidden) }} {{ template "section-tree-nav" dict "sect" . "currentnode" $currentNode "showvisitedlinks" $showvisitedlinks }} {{ range $pages.ByWeight }} {{ if and .Params.hidden (not $.showhidden) }} {{ template "section-tree-nav" dict "sect" . "currentnode" $currentNode "showvisitedlinks" $showvisitedlinks }} {{ if not .Params.Hidden }} data-nav-id="{{ .RelPermalink }}" class="dd-item {{ if eq .File.UniqueID $currentNode.File.UniqueID }}active{{ end }}" <a href="{{ .RelPermalink }}"> {{ safeHTML .Params.Pre }} {{ or .Params.menuTitle .LinkTitle .Title }} {{ safeHTML .Params.Post }} {{ if $showvisitedlinks }} <i class="fas fa-check read-icon"></i>