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 := . }}
|
{{- $currentNode := . }}
|
||||||
{{- $showvisitedlinks := .Site.Params.showVisitedLinks }}
|
{{- $showvisitedlinks := .Site.Params.showVisitedLinks }}
|
||||||
<div id="header-wrapper">
|
<div id="header-wrapper">
|
||||||
<div id="header">
|
<div id="header">
|
||||||
{{- partial "logo.html" . }}
|
{{ partial "logo.html" . }}
|
||||||
</div>
|
</div>
|
||||||
{{- if not .Site.Params.disableSearch }}
|
{{- if not .Site.Params.disableSearch }}
|
||||||
{{ partial "search.html" . }}
|
{{ partial "search.html" . }}
|
||||||
|
@ -94,13 +94,13 @@
|
||||||
{{- partial "menu-footer.html" . }}
|
{{- partial "menu-footer.html" . }}
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
{{- define "section-tree-nav" }}
|
{{- define "section-tree-nav" }}
|
||||||
{{- $showvisitedlinks := .showvisitedlinks }}
|
{{- $showvisitedlinks := .showvisitedlinks }}
|
||||||
{{- $currentNode := .currentnode }}
|
{{- $currentNode := .currentnode }}
|
||||||
{{- $currentFileUniqueID := "" }}
|
{{- $currentFileUniqueID := "" }}
|
||||||
{{- $alwaysopen := .alwaysopen }}
|
{{- $alwaysopen := .alwaysopen }}
|
||||||
{{- with $currentNode.File }}{{ $currentFileUniqueID = .UniqueID }}{{ end }}
|
{{- with $currentNode.File }}{{ $currentFileUniqueID = .UniqueID }}{{ end }}
|
||||||
{{- with .sect }}
|
{{- with .sect }}
|
||||||
{{- $hidden := and (eq (.Scratch.Get "relearnIsHiddenFromCurrent") true) (not $.showhidden) (not (.IsAncestor $currentNode)) }}
|
{{- $hidden := and (eq (.Scratch.Get "relearnIsHiddenFromCurrent") true) (not $.showhidden) (not (.IsAncestor $currentNode)) }}
|
||||||
{{- if $hidden }}
|
{{- if $hidden }}
|
||||||
|
@ -138,4 +138,4 @@
|
||||||
</li>
|
</li>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
<div class="progress">
|
<div class="progress">
|
||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
{{ .TableOfContents }}
|
{{ .TableOfContents }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
Loading…
Reference in a new issue