Cleanup the menu partials, utilize Hugo features and performance better.
This commit is contained in:
parent
9eea6f46a9
commit
63399e6bf8
1 changed files with 16 additions and 13 deletions
|
|
@ -2,7 +2,7 @@
|
|||
{{ $currentID := "" -}}
|
||||
{{ with .File }}{{ $currentID = .UniqueID }}{{ end -}}
|
||||
<aside class="sidebar layout__second-sidebar">
|
||||
{{ range $.Site.Home.Sections -}}
|
||||
{{ range .Site.Sections -}}
|
||||
<section>
|
||||
<h4 class="menu"><a class="{{ if eq $currentSection .Section }}active{{ end }}" href="{{ .RelPermalink }}">{{ .Title }}</a></h4>
|
||||
<ul class="menu">
|
||||
|
|
|
|||
Loading…
Reference in a new issue