diff --git a/layouts/partials/home.html b/layouts/partials/home.html index bb7fa59..a3cd839 100644 --- a/layouts/partials/home.html +++ b/layouts/partials/home.html @@ -19,7 +19,7 @@ {{ end }} {{ if .Site.Data.sections }} - {{ range first 1 (sort .Site.Data.sections "section.weight") }} + {{ 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) }}