1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-27 14: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 -}} {{- $title := .Section | humanize -}}
{{- if .IsHome }} {{- if .IsHome }}
{{- $title = "All content" -}} {{- $title = "All content" -}}
{{- $pages = .Site.RegularPages -}} {{- $pages = where .Site.RegularPages "Date" "!=" (time "0001-01-01") -}}
{{- $period = "hourly" -}} {{- $period = "hourly" -}}
{{ end -}} {{ end -}}
{{- if eq .Section "notes" -}} {{- if eq .Section "notes" -}}

View file

@ -13,7 +13,7 @@
{{- if .IsHome }} {{- if .IsHome }}
{{- $period := "hourly" -}} {{- $period := "hourly" -}}
{{- $title = "All content" -}} {{- $title = "All content" -}}
{{- $pages = .Site.RegularPages -}} {{- $pages = where .Site.RegularPages "Date" "!=" (time "0001-01-01") -}}
{{- $mins = "60" -}} {{- $mins = "60" -}}
{{ end -}} {{ end -}}
{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }} {{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}