{{- $pages := where .Site.RegularPages "Draft" "eq" false -}} {{- $limit := .Site.Config.Services.RSS.Limit -}} {{- if ge $limit 1 -}} {{- $pages = $pages | first $limit -}} {{- end -}} {{ partial "feeds/atom/base.xml" (dict "context" . "pages" $pages) }}