diff --git a/layouts/partials/navbar.html b/layouts/partials/navbar.html index 9c8f687..f84bec3 100644 --- a/layouts/partials/navbar.html +++ b/layouts/partials/navbar.html @@ -3,21 +3,22 @@ {{ range where .Site.Pages.ByTitle "Kind" "section" }} - {{ $page := . }} - - {{ $page.Title }} - + {{ title .Title }} + {{ if .Pages }} + + {{ range first 4 .Pages.ByDate }} + {{ .Title }} + {{ end }} + See more {{ lower .Title }} + + {{ end }} {{ end }} + {{ range where .Site.Pages.ByTitle "Kind" "page" }} - {{ $page := . }} - {{ if eq $page.Section "" }} - - - {{ $page.Title }} - - + {{ if eq .Section "" }} + {{ title .Title }} {{ end }} {{ end }}