mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-10 00:12:09 +00:00
Exclude date-less pages from feeds
This commit is contained in:
parent
fba366ca11
commit
8c8b2fe51b
2 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
|||
{{- $title := .Section | humanize -}}
|
||||
{{- if .IsHome }}
|
||||
{{- $title = "All content" -}}
|
||||
{{- $pages = .Site.RegularPages -}}
|
||||
{{- $pages = where .Site.RegularPages "Date" "!=" (time "0001-01-01") -}}
|
||||
{{- $period = "hourly" -}}
|
||||
{{ end -}}
|
||||
{{- if eq .Section "notes" -}}
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
{{- if .IsHome }}
|
||||
{{- $period := "hourly" -}}
|
||||
{{- $title = "All content" -}}
|
||||
{{- $pages = .Site.RegularPages -}}
|
||||
{{- $pages = where .Site.RegularPages "Date" "!=" (time "0001-01-01") -}}
|
||||
{{- $mins = "60" -}}
|
||||
{{ end -}}
|
||||
{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
|
||||
|
|
Loading…
Reference in a new issue