diff --git a/website/themes/beastie/layouts/news/news.rss.xml b/website/themes/beastie/layouts/news/news.rss.xml index f109d6ca67..fa369c9fa2 100644 --- a/website/themes/beastie/layouts/news/news.rss.xml +++ b/website/themes/beastie/layouts/news/news.rss.xml @@ -1,54 +1,54 @@ FreeBSD News Flash https://www.FreeBSD.org/news/ News from the FreeBSD Project en-us freebsd-www@FreeBSD.org (Webmaster Team) freebsd-www@FreeBSD.org (Webmaster Team) https://www.FreeBSD.org/logo/logo-full.png FreeBSD News Flash https://www.FreeBSD.org/news/ {{ $data := index .Site.Data "en" }} {{ $newsData := $data.news }} {{ with $newsData.news }} {{ $newsCounter := 0 }} {{ $newsDayCounter := 1 }} {{ $newsDayPrev := false }} {{ range (sort .news "date" "desc") }} {{ if lt $newsCounter 10 }} {{ $newsDayCur := dateFormat "2006-01-02" .date }} {{ if eq $newsDayCur $newsDayPrev }} {{ $newsDayCounter = add $newsDayCounter 1 }} {{ else }} {{ $newsDayCounter = 1 }} {{ end }} {{ if .title }} {{ $title := replaceRE "<a .*\">" "" .title }} {{ $title = replaceRE "</a>" "" $title }} {{ $title }} {{ end }} {{ if .description }} {{ $description := replaceRE "" "" .description | safeHTML}} {{ $description = replaceRE "" "" $description | safeHTML}} {{ $description }} {{ end }} {{ absLangURL ($.Site.BaseURL) }}news/newsflash/#{{ dateFormat "2006-01-02" .date }}:{{ $newsDayCounter }} {{ absLangURL ($.Site.BaseURL) }}news/newsflash/#{{ dateFormat "2006-01-02" .date }}:{{ $newsDayCounter }} - {{ dateFormat "2006-01-02" .date }} + {{ dateFormat "02 Jan 06 15:04 UTC" .date }} {{ $newsCounter = add $newsCounter 1 }} {{ $newsDayPrev = $newsDayCur }} {{ end }} {{ end }} {{ end }} diff --git a/website/themes/beastie/layouts/press/press.rss.xml b/website/themes/beastie/layouts/press/press.rss.xml index 660c49652d..f21b03d89f 100644 --- a/website/themes/beastie/layouts/press/press.rss.xml +++ b/website/themes/beastie/layouts/press/press.rss.xml @@ -1,50 +1,50 @@ FreeBSD in the Press https://www.FreeBSD.org/press/ Press Stories about FreeBSD en-us freebsd-www@FreeBSD.org (Webmaster Team) freebsd-www@FreeBSD.org (Webmaster Team) https://www.FreeBSD.org/logo/logo-full.png FreeBSD in the Press https://www.FreeBSD.org/press/ {{ $pressMonthPrev := false }} {{ $data := index .Site.Data "en" }} {{ $pressData := $data.press }} {{ with $pressData.press }} {{ $pressCounter := 0 }} {{ $pressMonthCounter := 1 }} {{ range (sort .press "date" "desc") }} {{ if lt $pressCounter 10 }} {{ $pressMonthCur := dateFormat "2006-01" .date }} {{ if eq $pressMonthCur $pressMonthPrev }} {{ $pressMonthCounter = add $pressMonthCounter 1 }} {{ else }} {{ $pressMonthCounter = 1 }} {{ end }} {{ if .name }} {{ .name }} {{ end }} {{ if .description }} {{ .description }} {{ end }} {{ absLangURL ($.Site.BaseURL) }}press/#{{ dateFormat "2006-01" .date }}:{{ $pressMonthCounter }} {{ absLangURL ($.Site.BaseURL) }}press/#{{ dateFormat "2006-01" .date }}:{{ $pressMonthCounter }} - {{ dateFormat "2006-01-02" .date }} + {{ dateFormat "02 Jan 06 15:04 UTC" .date }} {{ $pressMonthPrev = $pressMonthCur }} {{ end }} {{ $pressCounter = add $pressCounter 1 }} {{ end }} {{ end }} diff --git a/website/themes/beastie/layouts/security/security.rss.xml b/website/themes/beastie/layouts/security/security.rss.xml index bace49147d..8ca772180f 100644 --- a/website/themes/beastie/layouts/security/security.rss.xml +++ b/website/themes/beastie/layouts/security/security.rss.xml @@ -1,44 +1,44 @@ FreeBSD Security Advisories and Errata notices https://www.FreeBSD.org/security/ Security advisories and Errata notices published from the FreeBSD Project en secteam@FreeBSD.org (FreeBSD Security Team) secteam@FreeBSD.org (FreeBSD Security Team) https://www.FreeBSD.org/logo/logo-full.png FreeBSD Security Advisories and Errata notices https://www.FreeBSD.org/security/ {{ with .Site.Data.security.errata }} {{ $securityCounter := 0 }} {{ range (sort .notices "date" "desc") }} {{ if lt $securityCounter 10 }} {{ .name }} {{ absLangURL ($.Site.BaseURL) }}security/advisories/{{ .name }}.asc {{ absLangURL ($.Site.BaseURL) }}security/advisories/{{ .name }}.asc {{ .date }} {{ $securityCounter = add $securityCounter 1 }} {{ end }} {{ end }} {{ end }} {{ with .Site.Data.security.advisories }} {{ $advisoriesCounter := 0 }} {{ range (sort .advisories "date" "desc") }} {{ if lt $advisoriesCounter 10 }} {{ .name }} {{ absLangURL ($.Site.BaseURL) }}/security/advisories/{{ .name }}.asc {{ absLangURL ($.Site.BaseURL) }}/security/advisories/{{ .name }}.asc - {{ .date }} + {{ dateFormat "02 Jan 06 15:04 UTC" .date }} {{ $advisoriesCounter = add $advisoriesCounter 1 }} {{ end }} {{ end }} {{ end }}