diff --git a/layouts/partials/init/index.html b/layouts/partials/init/index.html index 5bf1c313..9abb3730 100644 --- a/layouts/partials/init/index.html +++ b/layouts/partials/init/index.html @@ -1,4 +1,4 @@ -{{- .Scratch.Set "version" "v0.3.17-e2afa113" -}} +{{- .Scratch.Set "version" "v0.3.17-2b936cb6" -}} {{- .Scratch.Set "this" dict -}} {{- partial "init/detection-env.html" . -}} diff --git a/layouts/partials/recently-updated.html b/layouts/partials/recently-updated.html index 77ec4023..ea2ecfa5 100644 --- a/layouts/partials/recently-updated.html +++ b/layouts/partials/recently-updated.html @@ -18,7 +18,10 @@ {{- $scopePages = .Scratch.Get "mainSectionPages" -}} {{- end -}} {{- $scopePages = where $scopePages.ByLastmod.Reverse "Section" "!=" "" -}} - {{- /* {{- $scopePages = where $scopePages "File.IsContentAdapter" "ne" true -}} */ -}} + {{- $hiddenAdapters := .Param "hiddenAdapters" | default false -}} + {{- if $hiddenAdapters -}} + {{- $scopePages = where $scopePages "File.IsContentAdapter" "ne" true -}} + {{- end -}} {{- range first $maxPostCount $scopePages -}} {{- if gt (add .Lastmod.Unix (mul 86900 $days)) now.Unix -}} {{- if ne .Lastmod.Unix .Date.Unix }}