git: 007011c9ef - main - Activate events calendar ics and fix some warnings
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 28 Feb 2022 21:56:30 UTC
The branch main has been updated by carlavilla: URL: https://cgit.FreeBSD.org/doc/commit/?id=007011c9ef7837e3069e6afa1c4de9d24b0f2e23 commit 007011c9ef7837e3069e6afa1c4de9d24b0f2e23 Author: Sergio Carlavilla Delgado <carlavilla@FreeBSD.org> AuthorDate: 2022-02-28 21:55:33 +0000 Commit: Sergio Carlavilla Delgado <carlavilla@FreeBSD.org> CommitDate: 2022-02-28 21:55:33 +0000 Activate events calendar ics and fix some warnings PR: 249061 Submitted by: lwhsu@ --- website/config/_default/config.toml | 2 +- website/data/en/events/events2014.toml | 2 +- website/themes/beastie/layouts/events/list.ics | 19 +++++-------------- 3 files changed, 7 insertions(+), 16 deletions(-) diff --git a/website/config/_default/config.toml b/website/config/_default/config.toml index 0cc3cf6b4a..9bd9ecbd9d 100644 --- a/website/config/_default/config.toml +++ b/website/config/_default/config.toml @@ -37,7 +37,7 @@ home = [ "HTML" ] page = [ "HTML" ] list = [ "HTML" ] single = [ "HTML" ] -section = [ "HTML", "RSS" ] +section = [ "HTML", "RSS", "Calendar" ] [outputFormats] [outputFormats.Calendar] diff --git a/website/data/en/events/events2014.toml b/website/data/en/events/events2014.toml index 669e063d99..7328ba2620 100644 --- a/website/data/en/events/events2014.toml +++ b/website/data/en/events/events2014.toml @@ -63,7 +63,7 @@ site = "University of Cambridge" description = "The Cambridge FreeBSD Developers Summit is an annual invite-only event focused on bringing together developers and vendors to discuss and build the future of the FreeBSD project. This years topics will include the desired feature set of FreeBSD 11, implementing the new release strategy for the 9 and 10 branches, packaging the base system, and building the infrastructure and tools to attract more embedded vendors to FreeBSD." [[events]] -id = "bsdday-2013" +id = "bsdday-2014" name = "BSDday" url = "http://bsdday.org/" startDate = "2014-08-09" diff --git a/website/themes/beastie/layouts/events/list.ics b/website/themes/beastie/layouts/events/list.ics index 0bddfcab44..abe43c5c00 100644 --- a/website/themes/beastie/layouts/events/list.ics +++ b/website/themes/beastie/layouts/events/list.ics @@ -2,23 +2,14 @@ BEGIN:VCALENDAR VERSION:2.0 PRODID:-//FreeBSD//events calendar//EN CALSCALE:GREGORIAN -METHOD:PUBLISH - -{{ $data := index .Site.Data .Sites.First.Language.Lang }} -{{ $eventsData := $data }} -{{ with $eventsData }} - {{ range (sort .events "year" "desc") }} - {{ range (sort .events "startDate" "desc") }} +METHOD:PUBLISH{{ $data := index .Site.Data .Sites.First.Language.Lang }}{{ $eventsData := $data }}{{ with $eventsData }}{{ range (sort .events "year" "desc") }}{{ range (sort .events "startDate" "desc") }} BEGIN:VEVENT -SEQUENCE:0 +UID:{{ .id }} SUMMARY:{{ .name }} URL;VALUE=URI:{{ .url }} LOCATION:{{ .site }}, {{ .city }}, {{ .country }} -DTSTART;VALUE=DATE:20200319{{ dateFormat "20060102" .startDate }} -DTEND;VALUE=DATE:20200322{{ dateFormat "20060102" .endDate }} +DTSTART;VALUE=DATE:{{ dateFormat "20060102" .startDate }} +DTEND;VALUE=DATE:{{ dateFormat "20060102" .endDate }} DESCRIPTION:{{ .description }} -END:VEVENT - {{ end }} - {{ end }} -{{ end }} +END:VEVENT{{ end }}{{ end }}{{ end }} END:VCALENDAR