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