fix empty sidelist when modifying doc

This commit is contained in:
Ta-Ching Chen 2020-03-11 16:53:58 +08:00
parent f5b7ee0a93
commit 6a834ae6b8

View file

@ -8,7 +8,7 @@
{{ $currentNode := . }}
<a class="d-block h4 back-btn" href="{{ .Site.BaseURL | relLangURL }}">{{ i18n "Back-home"}}</a>
{{range .Site.Home.Sections.ByWeight}}
{{ if eq . $currentNode.FirstSection }} {{/* print current section only */}}
{{ if eq .FirstSection $currentNode.FirstSection }} {{/* print current section only */}}
{{ template "section-tree-nav" dict "sect" . "currentnode" $currentNode}}
{{ end }}
{{ end }}