1
0
Fork 0
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:
Rohan Kumar 2022-06-17 20:53:19 -07:00
parent fba366ca11
commit 8c8b2fe51b
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479
2 changed files with 2 additions and 2 deletions

View file

@ -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" -}}

View file

@ -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 }}