<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Upcoming FreeBSD Events</title>
    <link>https://www.FreeBSD.org/events/</link>
    <description>RSS feed of upcoming FreeBSD-related conferences, summits, courses, and other relevant events.</description>
    <language>en-us</language>
    <webMaster>freebsd-www@FreeBSD.org (FreeBSD Web Team)</webMaster>
    <managingEditor>freebsd-www@FreeBSD.org (FreeBSD Web Team)</managingEditor>
    <image>
      <url>https://www.FreeBSD.org/logo/logo-full.png</url>
      <title>FreeBSD News Flash</title>
      <link>https://www.FreeBSD.org/events/</link>
    </image>
    <atom:link href="https://www.FreeBSD.org/events/feed.xml" rel="self" type="application/rss+xml"/>
    {{ $data := index .Site.Data "en" }}
    {{ $eventsData := $data }}
    {{ with $eventsData }}
      {{ range first 3 (sort .events "year" "desc") }}
        {{ range (sort .events "startDate" "asc") }}
          {{ if ge (dateFormat "20060102" .endDate) (dateFormat "20060102" now) }}
            <item>
              {{ if .name }}
                <title>
                  {{ .name }}
                </title>
              {{ end }}
              {{ if .description }}
                <description>
                  {{ .description }}
                </description>
              {{ end }}
              <link>{{ .url }}</link>
              <guid>{{ absLangURL ($.Site.BaseURL) }}events/#{{ .id }}</guid>
            </item>
          {{ end }}
        {{ end }}
      {{ end }}
    {{ end }}
  </channel>
</rss>
