This repository was archived by the owner on Apr 20, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
themes/learn/layouts/partials Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1414 {{ define "menu-nextprev" }}
1515 {{$currentNode := .currentnode }}
1616 {{ if ne .menu.Params.hidden true}}
17- {{if hasPrefix $currentNode.URL .menu.URL }}
17+ {{if hasPrefix $currentNode.RelPermalink .menu.RelPermalink }}
1818 {{ $currentNode.Scratch.Set "NextPageOK" "OK" }}
1919 {{ $currentNode.Scratch.Set "prevPage" ($currentNode.Scratch.Get "prevPageTmp") }}
2020 {{else}}
4343 {{$showPrevNext := (and (not .Params.disableNextPrev) (not .Site.Params.disableNextPrev))}}
4444 {{if $showPrevNext}}
4545 {{with ($.Scratch.Get "prevPage")}}
46- < a class ="nav nav-prev " href ="{{.URL }} " title ="{{.Title}} "> < i class ="fa fa-chevron-left "> </ i > </ a >
46+ < a class ="nav nav-prev " href ="{{.RelPermalink }} " title ="{{.Title}} "> < i class ="fa fa-chevron-left "> </ i > </ a >
4747 {{end}}
4848 {{with ($.Scratch.Get "nextPage")}}
49- < a class ="nav nav-next " href ="{{.URL }} " title ="{{.Title}} " style ="margin-right: 0px; "> < i class ="fa fa-chevron-right "> </ i > </ a >
49+ < a class ="nav nav-next " href ="{{.RelPermalink }} " title ="{{.Title}} " style ="margin-right: 0px; "> < i class ="fa fa-chevron-right "> </ i > </ a >
5050 {{end}}
5151 {{end}}
5252 </ div >
Original file line number Diff line number Diff line change 33 < head >
44 < meta charset ="utf-8 ">
55 < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
6- {{ .Hugo .Generator }}
6+ {{ hugo .Generator }}
77 {{ partial "meta.html" . }}
88 {{ partial "favicon.html" . }}
99 < title > {{ .Title }} :: {{ .Site.Title }}</ title >
103103 {{define "breadcrumb"}}
104104 {{$parent := .page.Parent }}
105105 {{ if $parent }}
106- {{ $value := (printf "< a href ='%s '> %s</ a > > %s" $parent.URL $parent.Title .value) }}
106+ {{ $value := (printf "< a href ='%s '> %s</ a > > %s" $parent.RelPermalink $parent.Title .value) }}
107107 {{ template "breadcrumb" dict "page" $parent "value" $value }}
108108 {{else}}
109109 {{.value|safeHTML}}
Original file line number Diff line number Diff line change @@ -99,9 +99,9 @@ <h3>{{ if not $disableShortcutsTitle}}{{ T "Shortcuts-Title"}}{{ end }}</h3>
9999 {{with .sect}}
100100 {{if .IsSection}}
101101 {{safeHTML .Params.head}}
102- < li data-nav-id ="{{.URL }} " title ="{{.Title}} " class ="dd-item
102+ < li data-nav-id ="{{.RelPermalink }} " title ="{{.Title}} " class ="dd-item
103103 {{if .IsAncestor $currentNode }}parent{{end}}
104- {{if eq .UniqueID $currentNode.UniqueID}}active{{end}}
104+ {{if eq .File. UniqueID $currentNode.File .UniqueID}}active{{end}}
105105 {{if .Params.alwaysopen}}parent{{end}}
106106 ">
107107 < a href ="{{.RelPermalink}} ">
You can’t perform that action at this time.
0 commit comments