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:
parent
fba366ca11
commit
8c8b2fe51b
2 changed files with 2 additions and 2 deletions
|
@ -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" -}}
|
||||||
|
|
|
@ -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 }}
|
||||||
|
|
Loading…
Reference in a new issue