diff --git a/layouts/partials/home.html b/layouts/partials/home.html index 90e3dd7..2f825a7 100644 --- a/layouts/partials/home.html +++ b/layouts/partials/home.html @@ -25,7 +25,10 @@
  • {{ . }}
  • {{ end }} - - + {{ if .Site.Data.sections }} + {{ range first 1 (where (sort .Site.Data.sections "section.weight") ".section.enable" true) }} + + {{ end }} + {{ end }} diff --git a/layouts/partials/navbar.html b/layouts/partials/navbar.html index 253c54d..00570c7 100644 --- a/layouts/partials/navbar.html +++ b/layouts/partials/navbar.html @@ -21,7 +21,7 @@ {{- if .Site.Data.sections }} {{- range sort .Site.Data.sections "section.weight" }} - {{ if .section.showOnNavbar }} + {{ if (and .section.enable .section.showOnNavbar) }}