Commit 8c5fa5d7 authored by Phu Nguyen's avatar Phu Nguyen
Browse files

Make use of rssLimit

parent 8c7bfe0d
......@@ -244,4 +244,5 @@ params:
- /thumbnail.png
matomo: 1
repoName: kde-org
rssLimit: 4
summaryLength: 15
---
aliases:
- ../../plasma-5.18.7
changelog: 5.18.6-5.18.7
date: 2021-03-30
layout: plasma
......
......@@ -8,7 +8,8 @@
<language>{{ .Site.LanguageCode | default "en" }}</language>
{{ with .OutputFormats.Get "RSS" }}{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}{{ end }}
{{ $pages := (.Site.GetPage "/announcements").RegularPagesRecursive }}
{{ range first 4 (where $pages "Params.hidden" "ne" "true") }}
{{- $limit := (cond (le site.Config.Services.RSS.Limit 0) 65536 site.Config.Services.RSS.Limit) }}
{{ range first $limit (where $pages "Params.hidden" "ne" "true") }}
<item>
<title>{{ partial "i18n_title.html" . }}</title>
<link>{{ .Permalink }}</link>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment