diff options
author | Yuanfei He <lhe868@gmail.com> | 2020-06-14 17:21:54 +0300 |
---|---|---|
committer | Yuanfei He <lhe868@gmail.com> | 2020-07-10 18:13:18 +0300 |
commit | 25a0e7364c09d0ddf958fe743b29c3b1bcf9e187 (patch) | |
tree | 2054328474e2dc6ea5a8a5b534269bc467750a63 | |
parent | c9fae15fbf8a4b7b238f3c9dc2459214b4a80d40 (diff) |
:art: add posts link
-rw-r--r-- | layouts/partials/nav.html | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html index 7a256a5..38a4a8f 100644 --- a/layouts/partials/nav.html +++ b/layouts/partials/nav.html @@ -16,6 +16,7 @@ {{ $siteURL:= "/" | absLangURL }} <li {{ if eq $url $siteURL }} class="active" {{end}} ><a href="/">Home</a></li> + <li {{ if eq .Title "Posts" }} class="active" {{end}}> <a href="/post/" >Posts/a></li> {{ range where site.RegularPages "Type" "in" site.Params.mainSections }} {{ if isset .Params "title" }} {{ $absURL:=.Permalink | absLangURL}} |