diff options
Diffstat (limited to 'website/themes/beastie')
-rw-r--r-- | website/themes/beastie/layouts/security/security.rss.xml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/website/themes/beastie/layouts/security/security.rss.xml b/website/themes/beastie/layouts/security/security.rss.xml index 0e0a9801f6..bace49147d 100644 --- a/website/themes/beastie/layouts/security/security.rss.xml +++ b/website/themes/beastie/layouts/security/security.rss.xml @@ -22,17 +22,22 @@ <guid>{{ absLangURL ($.Site.BaseURL) }}security/advisories/{{ .name }}.asc</guid> <pubDate>{{ .date }}</pubDate> </item> + {{ $securityCounter = add $securityCounter 1 }} {{ end }} {{ end }} {{ end }} {{ with .Site.Data.security.advisories }} + {{ $advisoriesCounter := 0 }} {{ range (sort .advisories "date" "desc") }} + {{ if lt $advisoriesCounter 10 }} <item> <title>{{ .name }}</title> <link>{{ absLangURL ($.Site.BaseURL) }}/security/advisories/{{ .name }}.asc</link> <guid>{{ absLangURL ($.Site.BaseURL) }}/security/advisories/{{ .name }}.asc</guid> <pubDate>{{ .date }}</pubDate> </item> + {{ $advisoriesCounter = add $advisoriesCounter 1 }} + {{ end }} {{ end }} {{ end }} </channel> |