|
@@ -2,11 +2,11 @@
|
|
{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}}
|
|
{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}}
|
|
{{- $pages := slice -}}
|
|
{{- $pages := slice -}}
|
|
{{- if $.IsHome -}}
|
|
{{- if $.IsHome -}}
|
|
-{{- $pages = $pctx.RegularPages -}}
|
|
|
|
|
|
+{{- $pages = sort $pctx.RegularPages "Date" "desc" -}}
|
|
{{- else if $.IsSection -}}
|
|
{{- else if $.IsSection -}}
|
|
-{{- $pages = $pctx.RegularPagesRecursive -}}
|
|
|
|
|
|
+{{- $pages = sort $pctx.RegularPagesRecursive "Date" "desc" -}}
|
|
{{- else -}}
|
|
{{- else -}}
|
|
-{{- $pages = $pctx.RegularPagesRecursive -}}
|
|
|
|
|
|
+{{- $pages = sort $pctx.RegularPagesRecursive "Date" "desc" -}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
{{- $limit := .Site.Config.Services.RSS.Limit -}}
|
|
{{- $limit := .Site.Config.Services.RSS.Limit -}}
|
|
{{- if ge $limit 1 -}}
|
|
{{- if ge $limit 1 -}}
|