mirror of
https://github.com/McShelby/hugo-theme-relearn
synced 2025-05-07 01:22:35 +08:00
wildspace
This commit is contained in:
parent
449708afd4
commit
2fcc3979b4
@ -1,5 +1,4 @@
|
|||||||
<nav id="sidebar" class="{{if $.Site.Params.showVisitedLinks }}showVisitedLinks{{end}}">
|
<nav id="sidebar" class="{{if $.Site.Params.showVisitedLinks }}showVisitedLinks{{end}}">
|
||||||
|
|
||||||
{{ $currentNode := . }}
|
{{ $currentNode := . }}
|
||||||
{{ $showvisitedlinks := .Site.Params.showVisitedLinks }}
|
{{ $showvisitedlinks := .Site.Params.showVisitedLinks }}
|
||||||
<div id="header-wrapper">
|
<div id="header-wrapper">
|
||||||
@ -22,7 +21,6 @@
|
|||||||
|
|
||||||
<div class="highlightable">
|
<div class="highlightable">
|
||||||
<ul class="topics">
|
<ul class="topics">
|
||||||
|
|
||||||
{{if eq .Site.Params.ordersectionsby "title"}}
|
{{if eq .Site.Params.ordersectionsby "title"}}
|
||||||
{{range .Site.Home.Sections.ByTitle}}
|
{{range .Site.Home.Sections.ByTitle}}
|
||||||
{{ template "section-tree-nav" dict "sect" . "currentnode" $currentNode "showvisitedlinks" $showvisitedlinks}}
|
{{ template "section-tree-nav" dict "sect" . "currentnode" $currentNode "showvisitedlinks" $showvisitedlinks}}
|
||||||
@ -146,8 +144,7 @@
|
|||||||
</ul>
|
</ul>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</li>
|
</li>
|
||||||
{{else}}
|
{{else if not .Params.Hidden }}
|
||||||
{{ if not .Params.Hidden }}
|
|
||||||
<li data-nav-id="{{.RelPermalink}}" title="{{.Title}}" class="dd-item {{if eq .File.UniqueID $currentFileUniqueID}}active{{end}}">
|
<li data-nav-id="{{.RelPermalink}}" title="{{.Title}}" class="dd-item {{if eq .File.UniqueID $currentFileUniqueID}}active{{end}}">
|
||||||
<a href="{{ .RelPermalink}}">
|
<a href="{{ .RelPermalink}}">
|
||||||
{{safeHTML .Params.Pre}}{{or .Params.menuTitle .LinkTitle .Title}}{{safeHTML .Params.Post}}
|
{{safeHTML .Params.Pre}}{{or .Params.menuTitle .LinkTitle .Title}}{{safeHTML .Params.Post}}
|
||||||
@ -157,4 +154,3 @@
|
|||||||
{{end}}
|
{{end}}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user