mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
✨ Feat: add hiddenAdapters param and front matter for recently updated list
This commit is contained in:
@@ -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" . -}}
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user