Rename pctx to item
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
{{ $pctx := . }}
|
{{ $item := . }}
|
||||||
{{ if .IsHome }}{{ $pctx = .Site }}{{ end }}
|
{{ if .IsHome }}{{ $item = .Site }}{{ end }}
|
||||||
{{ $pages := slice }}
|
{{ $pages := slice }}
|
||||||
{{ if or $.IsHome $.IsSection }}
|
{{ if or $.IsHome $.IsSection }}
|
||||||
{{ $pages = $pctx.RegularPages }}
|
{{ $pages = $item.RegularPages }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ $pages = $pctx.Pages }}
|
{{ $pages = $item.Pages }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ $limit := .Site.Config.Services.RSS.Limit }}
|
{{ $limit := .Site.Config.Services.RSS.Limit }}
|
||||||
{{ if ge $limit 1 }}
|
{{ if ge $limit 1 }}
|
||||||
|
Reference in New Issue
Block a user