From cfc3a14b094d2b9c7eb6ad44291528071e362273 Mon Sep 17 00:00:00 2001 From: Will Faught Date: Tue, 13 Dec 2022 20:46:59 -0800 Subject: [PATCH] Rename pctx to item --- layouts/_default/rss.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index df06775f..b2940d81 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -1,10 +1,10 @@ -{{ $pctx := . }} -{{ if .IsHome }}{{ $pctx = .Site }}{{ end }} +{{ $item := . }} +{{ if .IsHome }}{{ $item = .Site }}{{ end }} {{ $pages := slice }} {{ if or $.IsHome $.IsSection }} -{{ $pages = $pctx.RegularPages }} +{{ $pages = $item.RegularPages }} {{ else }} -{{ $pages = $pctx.Pages }} +{{ $pages = $item.Pages }} {{ end }} {{ $limit := .Site.Config.Services.RSS.Limit }} {{ if ge $limit 1 }}