diff options
Diffstat (limited to 'layouts/_default/baseof.html')
-rw-r--r-- | layouts/_default/baseof.html | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 3fbc126..c6e0e3b 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -12,27 +12,7 @@ <p style="text-align: center; font-weight: bold;"> <a href="/">{{ .Site.Title }}</a> </p> - {{ $currentPage := . }} - <ul> - {{ range .Site.Sections }} - {{ if eq $currentPage . }} - <li class="nav-current"><a href="{{ .RelPermalink }}">{{ .Title }}</a></li> - {{ else }} - <li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li> - {{ end }} - {{ if or (eq $currentPage .) ($currentPage.IsDescendant .) }} - <ul> - {{ range .Pages }} - {{ if eq $currentPage . }} - <li class="nav-current"><a href="{{ .RelPermalink }}">{{ .Title }}</a></li> - {{ else }} - <li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li> - {{ end }} - {{ end }} - </ul> - {{ end }} - {{ end }} - </ul> + {{ partial "recursive_nav.html" (dict "currentPage" . "pages" .Site.Sections) }} </aside> <div id="main-and-footer"> <main> |