Finish RSS and Atom implementations

This commit is contained in:
Eryn Wells 2024-10-20 09:12:07 -07:00
parent d971696e11
commit 256eae44e9
9 changed files with 118 additions and 0 deletions

7
layouts/index.atom Normal file
View file

@ -0,0 +1,7 @@
{{- $pages := .Site.RegularPages -}}
{{- $limit := .Site.Config.Services.RSS.Limit -}}
{{- if ge $limit 1 -}}
{{- $pages = $pages | first $limit -}}
{{- end -}}
{{ partial "feeds/atom/base.xml" (dict "context" . "pages" $pages) }}