mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-01-18 19:00:24 +00:00
theme: wildspace
This commit is contained in:
parent
fe7eb1d432
commit
7fce3b516f
6 changed files with 168 additions and 229 deletions
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 10 KiB |
|
@ -1,10 +1,10 @@
|
|||
|
||||
<nav id="sidebar" class="{{ if $.Site.Params.showVisitedLinks }}showVisitedLinks{{ end }}">
|
||||
<nav id="sidebar" class="{{ if $.Site.Params.showVisitedLinks }}showVisitedLinks{{ end }}">
|
||||
{{- $currentNode := . }}
|
||||
{{- $showvisitedlinks := .Site.Params.showVisitedLinks }}
|
||||
<div id="header-wrapper">
|
||||
<div id="header">
|
||||
{{- partial "logo.html" . }}
|
||||
{{ partial "logo.html" . }}
|
||||
</div>
|
||||
{{- if not .Site.Params.disableSearch }}
|
||||
{{ partial "search.html" . }}
|
||||
|
@ -94,13 +94,13 @@
|
|||
{{- partial "menu-footer.html" . }}
|
||||
</section>
|
||||
</div>
|
||||
</nav>
|
||||
{{- define "section-tree-nav" }}
|
||||
{{- $showvisitedlinks := .showvisitedlinks }}
|
||||
{{- $currentNode := .currentnode }}
|
||||
{{- $currentFileUniqueID := "" }}
|
||||
{{- $alwaysopen := .alwaysopen }}
|
||||
{{- with $currentNode.File }}{{ $currentFileUniqueID = .UniqueID }}{{ end }}
|
||||
</nav>
|
||||
{{- define "section-tree-nav" }}
|
||||
{{- $showvisitedlinks := .showvisitedlinks }}
|
||||
{{- $currentNode := .currentnode }}
|
||||
{{- $currentFileUniqueID := "" }}
|
||||
{{- $alwaysopen := .alwaysopen }}
|
||||
{{- with $currentNode.File }}{{ $currentFileUniqueID = .UniqueID }}{{ end }}
|
||||
{{- with .sect }}
|
||||
{{- $hidden := and (eq (.Scratch.Get "relearnIsHiddenFromCurrent") true) (not $.showhidden) (not (.IsAncestor $currentNode)) }}
|
||||
{{- if $hidden }}
|
||||
|
@ -138,4 +138,4 @@
|
|||
</li>
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
<div class="progress">
|
||||
<div class="progress">
|
||||
<div class="wrapper">
|
||||
{{ .TableOfContents }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
Loading…
Reference in a new issue