Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-doc
Path: blob/main/website/themes/beastie/layouts/press/rss.xml
18096 views
1
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
2
<channel>
3
<title>FreeBSD in the Press</title>
4
<link>https://www.FreeBSD.org/press/</link>
5
<description>Press Stories about FreeBSD</description>
6
<language>en-us</language>
7
<webMaster>[email protected] (Webmaster Team)</webMaster>
8
<managingEditor>[email protected] (Webmaster Team)</managingEditor>
9
<image>
10
<url>https://www.FreeBSD.org/logo/logo-full.png</url>
11
<title>FreeBSD in the Press</title>
12
<link>https://www.FreeBSD.org/press/</link>
13
</image>
14
<atom:link href="https://www.FreeBSD.org/press/feed.xml" rel="self" type="application/rss+xml"/>
15
{{ $pressMonthPrev := false }}
16
{{ $data := index hugo.Data "en" }}
17
{{ $pressData := $data.press }}
18
{{ with $pressData.press }}
19
{{ $pressCounter := 0 }}
20
{{ $pressMonthCounter := 1 }}
21
{{ range (sort .press "date" "desc") }}
22
{{ if lt $pressCounter 10 }}
23
{{ $pressMonthCur := dateFormat "2006-01" .date }}
24
{{ if eq $pressMonthCur $pressMonthPrev }}
25
{{ $pressMonthCounter = add $pressMonthCounter 1 }}
26
{{ else }}
27
{{ $pressMonthCounter = 1 }}
28
{{ end }}
29
<item>
30
{{ if .name }}
31
<title>
32
{{ .name }}
33
</title>
34
{{ end }}
35
{{ if .description }}
36
<description>
37
{{ .description }}
38
</description>
39
{{ end }}
40
<link>{{ absLangURL ($.Site.BaseURL) }}press/#{{ dateFormat "2006-01" .date }}:{{ $pressMonthCounter }}</link>
41
<guid>{{ absLangURL ($.Site.BaseURL) }}press/#{{ dateFormat "2006-01" .date }}:{{ $pressMonthCounter }}</guid>
42
<pubDate>{{ dateFormat "02 Jan 06 15:04 UTC" .date }}</pubDate>
43
</item>
44
{{ $pressMonthPrev = $pressMonthCur }}
45
{{ end }}
46
{{ $pressCounter = add $pressCounter 1 }}
47
{{ end }}
48
{{ end }}
49
</channel>
50
</rss>
51
52