aboutsummaryrefslogtreecommitdiff
path: root/website/themes/beastie/layouts/security/security.rss.xml
blob: bace49147d8f7d885341f90e5fa1ab7215e888e9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>FreeBSD Security Advisories and Errata notices</title>
    <link>https://www.FreeBSD.org/security/</link>
    <description>Security advisories and Errata notices published from the FreeBSD Project</description>
    <language>en</language>
    <webMaster>secteam@FreeBSD.org (FreeBSD Security Team)</webMaster>
    <managingEditor>secteam@FreeBSD.org (FreeBSD Security Team)</managingEditor>
    <image>
      <url>https://www.FreeBSD.org/logo/logo-full.png</url>
      <title>FreeBSD Security Advisories and Errata notices</title>
      <link>https://www.FreeBSD.org/security/</link>
    </image>
    <atom:link href="https://www.FreeBSD.org/security/feed.xml" rel="self" type="application/rss+xml"/>
    {{ with .Site.Data.security.errata }}
      {{ $securityCounter := 0 }}
      {{ range (sort .notices "date" "desc") }}
        {{ if lt $securityCounter 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>
          {{ $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>
</rss>