aboutsummaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-09-04 10:42:48 -0400
committertdro <tdro@noreply.example.com>2022-09-04 10:42:48 -0400
commitf78d934110a8bed97068731496abda5ab5f1cea2 (patch)
tree82b2bad6363305661d2b83c3b3a90dfe778ae616 /themes
parentdfd9120c1f7acae2bbd6fee40ed55cd6ea5cb4a3 (diff)
downloadcanory-f78d934110a8bed97068731496abda5ab5f1cea2.tar.gz
canory-f78d934110a8bed97068731496abda5ab5f1cea2.tar.bz2
canory-f78d934110a8bed97068731496abda5ab5f1cea2.zip
themes/default/layouts/_default/rss: Clarify page context
Diffstat (limited to 'themes')
-rw-r--r--themes/default/layouts/_default/rss.xml6
1 files changed, 3 insertions, 3 deletions
diff --git a/themes/default/layouts/_default/rss.xml b/themes/default/layouts/_default/rss.xml
index 0173524..0364b25 100644
--- a/themes/default/layouts/_default/rss.xml
+++ b/themes/default/layouts/_default/rss.xml
@@ -1,6 +1,6 @@
-{{- $pctx := . -}}
-{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}}
-{{- $pages := $pctx.RegularPages -}}
+{{- $pageContext := . -}}
+{{- if .IsHome -}}{{ $pageContext = .Site }}{{- end -}}
+{{- $pages := $pageContext.RegularPages -}}
{{- $limit := .Site.Config.Services.RSS.Limit -}}
{{- if ge $limit 1 -}}
{{- $pages = $pages | first $limit -}}