diff options
-rw-r--r-- | layouts/_default/baseof.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 6f55b57..3fbc126 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -12,18 +12,18 @@ <p style="text-align: center; font-weight: bold;"> <a href="/">{{ .Site.Title }}</a> </p> - {{ $currentSection := .CurrentSection }} + {{ $currentPage := . }} <ul> {{ range .Site.Sections }} - {{ if eq $currentSection . }} + {{ 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 $currentSection .) ($currentSection.IsDescendant .) }} + {{ if or (eq $currentPage .) ($currentPage.IsDescendant .) }} <ul> {{ range .Pages }} - {{ if eq $currentSection . }} + {{ if eq $currentPage . }} <li class="nav-current"><a href="{{ .RelPermalink }}">{{ .Title }}</a></li> {{ else }} <li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li> |