From nobody Tue Aug 12 18:53:52 2025 X-Original-To: dev-commits-doc-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4c1gdY1ZFmz63qsD for ; Tue, 12 Aug 2025 18:53:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4c1gdX5kx1z3PGc; Tue, 12 Aug 2025 18:53:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1755024832; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=jHXg1mt6E3vqYPS6BKSC2XKqCXmrPkni+MKPIky790w=; b=XjQED1vF0B/9WPLO/hQgaN/QHQI/lCyvtv1W0ue5kzngshToko7kOA1LbpnIT2ubZOfgSW ysuQ4db1ilD0Me91Cs6mEiPYS+tiROj7KRr5z91iqmVBcRT+zSB6lAkjx/UbKC3nC7OJcy zxHt1xyex+9hZXZSkGAbMNpQTHegC1SDY7jXbSO3YaRmpUFK/A1j5/x8e0EQgqTDeNmvta c1/nOoYMd38p51mgjUC+xGDtM4KJUUM5x9Odos/XYqUAF2pePID/fUFRqqx98SaiTNmjx9 7gb1NUGLJ2mjEVZQ3AZ2U4BL3Ied2XzXQZRGTha9jj5UUslx9uOJ5mxxZiClUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1755024832; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=jHXg1mt6E3vqYPS6BKSC2XKqCXmrPkni+MKPIky790w=; b=Rioy98yx8gLqy5ISPrwuTBjXCulmW6fSx+9tId1GauptvWGGZgBq9BszmtPkGdd/Smih1S wuU1YguJwyliemY2fYSIPF/eYKXZoV387fydUaXXt/XD1Fo9QEVs9ZWXPX5KMJE5ciFob2 ZBsonp5aITUdxvj1ddQ0INrS4ejoYQLmdXvJR/guLJEvsaEDcbAVYftG6v2esbGFRH2zUv +G+ZPUUI5xhFifUkBx5/FlRdW2YaCptpmMVf/5w2cQs+Ey59B3hmmGPizTmDyfIIXxinWy XwAwyipHi+FPbv5ihKTskja6k3bxOWLaEF/AXuG7J3W0BT4pLb5LRlbZ801rgg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1755024832; a=rsa-sha256; cv=none; b=L002gxPLzvB++IfuDGJdDEBTEl9PM7tpxCclybG+VRjwxAWSo7b/6aWW/nLwnhGcH9+am6 qyK4ig6Vxpe9WVGZLCfZ5yUSm4I9eqr08kYqXlHYqsn10dNi8hmpuC5LkHtVctc4TDC9cD Gf6uiMu/nHENMCt4eo+4poDrm+qtE9U2+/92oU4v/gMKi/MSiIdUyZwXiNqS5QGXiFARIh NFKl5euWs7wVAQakNyCwyvNJJddeJvbjkfR7dBaoMPIO0M/9IsvsLSiHeMOvYwIl3qzTKl Q9k63dYeui4LSKkDMvWM7H7YvVTBEdERJCK53yoUtdnpMAWFgELfe9v0mmnekA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4c1gdX5DXPzqTG; Tue, 12 Aug 2025 18:53:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 57CIrqIx072640; Tue, 12 Aug 2025 18:53:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 57CIrqTM072637; Tue, 12 Aug 2025 18:53:52 GMT (envelope-from git) Date: Tue, 12 Aug 2025 18:53:52 GMT Message-Id: <202508121853.57CIrqTM072637@gitrepo.freebsd.org> To: doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org From: Sergio Carlavilla Delgado Subject: git: 718ab18c3c - main - Website: Remove event map. Google API deprecated List-Id: Commit messages for all branches of the doc repository List-Archive: https://lists.freebsd.org/archives/dev-commits-doc-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-doc-all@freebsd.org Sender: owner-dev-commits-doc-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: carlavilla X-Git-Repository: doc X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 718ab18c3ce8dddefa1b624f01b119ea0cea77a1 Auto-Submitted: auto-generated The branch main has been updated by carlavilla: URL: https://cgit.FreeBSD.org/doc/commit/?id=718ab18c3ce8dddefa1b624f01b119ea0cea77a1 commit 718ab18c3ce8dddefa1b624f01b119ea0cea77a1 Author: Sergio Carlavilla Delgado AuthorDate: 2025-08-12 18:52:34 +0000 Commit: Sergio Carlavilla Delgado CommitDate: 2025-08-12 18:52:34 +0000 Website: Remove event map. Google API deprecated Google deprecated the API we use to draw the map. --- website/content/en/events/2003.adoc | 2 -- website/content/en/events/2004.adoc | 2 -- website/content/en/events/2005.adoc | 2 -- website/content/en/events/2006.adoc | 2 -- website/content/en/events/2007.adoc | 2 -- website/content/en/events/2008.adoc | 2 -- website/content/en/events/2009.adoc | 2 -- website/content/en/events/2010.adoc | 2 -- website/content/en/events/2011.adoc | 2 -- website/content/en/events/2012.adoc | 2 -- website/content/en/events/2013.adoc | 2 -- website/content/en/events/2014.adoc | 2 -- website/content/en/events/2015.adoc | 2 -- website/content/en/events/2016.adoc | 2 -- website/content/en/events/2017.adoc | 2 -- website/content/en/events/2018.adoc | 2 -- website/content/en/events/2019.adoc | 2 -- website/content/en/events/2020.adoc | 2 -- website/content/en/events/2021.adoc | 2 -- website/content/en/events/2022.adoc | 2 -- website/content/en/events/_index.adoc | 2 -- website/themes/beastie/layouts/events/list.html | 37 ++--------------------- website/themes/beastie/layouts/events/single.html | 31 ------------------- 23 files changed, 3 insertions(+), 107 deletions(-) diff --git a/website/content/en/events/2003.adoc b/website/content/en/events/2003.adoc index 8be785d4da..28fd480492 100644 --- a/website/content/en/events/2003.adoc +++ b/website/content/en/events/2003.adoc @@ -7,5 +7,3 @@ year: 2003 = FreeBSD Past Events Please send details of any FreeBSD related events or events that are of interest for FreeBSD users which are not listed here to freebsd-doc@FreeBSD.org. - -Countries and regions displayed in dark red on the map below are hosting upcoming FreeBSD-related events. Countries that have hosted FreeBSD-related events in the past show up in yellow or orange, with darker colors representing a larger number of previous events. diff --git a/website/content/en/events/2004.adoc b/website/content/en/events/2004.adoc index 6b169ef8b3..f39fd313d5 100644 --- a/website/content/en/events/2004.adoc +++ b/website/content/en/events/2004.adoc @@ -7,5 +7,3 @@ year: 2004 = FreeBSD Past Events Please send details of any FreeBSD related events or events that are of interest for FreeBSD users which are not listed here to freebsd-doc@FreeBSD.org. - -Countries and regions displayed in dark red on the map below are hosting upcoming FreeBSD-related events. Countries that have hosted FreeBSD-related events in the past show up in yellow or orange, with darker colors representing a larger number of previous events. diff --git a/website/content/en/events/2005.adoc b/website/content/en/events/2005.adoc index d14fa7909a..5b319696f7 100644 --- a/website/content/en/events/2005.adoc +++ b/website/content/en/events/2005.adoc @@ -7,5 +7,3 @@ year: 2005 = FreeBSD Past Events Please send details of any FreeBSD related events or events that are of interest for FreeBSD users which are not listed here to freebsd-doc@FreeBSD.org. - -Countries and regions displayed in dark red on the map below are hosting upcoming FreeBSD-related events. Countries that have hosted FreeBSD-related events in the past show up in yellow or orange, with darker colors representing a larger number of previous events. diff --git a/website/content/en/events/2006.adoc b/website/content/en/events/2006.adoc index f6284e3391..9afd2e2f0a 100644 --- a/website/content/en/events/2006.adoc +++ b/website/content/en/events/2006.adoc @@ -7,5 +7,3 @@ year: 2006 = FreeBSD Past Events Please send details of any FreeBSD related events or events that are of interest for FreeBSD users which are not listed here to freebsd-doc@FreeBSD.org. - -Countries and regions displayed in dark red on the map below are hosting upcoming FreeBSD-related events. Countries that have hosted FreeBSD-related events in the past show up in yellow or orange, with darker colors representing a larger number of previous events. diff --git a/website/content/en/events/2007.adoc b/website/content/en/events/2007.adoc index 60837d412b..e838343f48 100644 --- a/website/content/en/events/2007.adoc +++ b/website/content/en/events/2007.adoc @@ -7,5 +7,3 @@ year: 2007 = FreeBSD Past Events Please send details of any FreeBSD related events or events that are of interest for FreeBSD users which are not listed here to freebsd-doc@FreeBSD.org. - -Countries and regions displayed in dark red on the map below are hosting upcoming FreeBSD-related events. Countries that have hosted FreeBSD-related events in the past show up in yellow or orange, with darker colors representing a larger number of previous events. diff --git a/website/content/en/events/2008.adoc b/website/content/en/events/2008.adoc index 4bd3c336ee..02e4de5c0c 100644 --- a/website/content/en/events/2008.adoc +++ b/website/content/en/events/2008.adoc @@ -7,5 +7,3 @@ year: 2008 = FreeBSD Past Events Please send details of any FreeBSD related events or events that are of interest for FreeBSD users which are not listed here to freebsd-doc@FreeBSD.org. - -Countries and regions displayed in dark red on the map below are hosting upcoming FreeBSD-related events. Countries that have hosted FreeBSD-related events in the past show up in yellow or orange, with darker colors representing a larger number of previous events. diff --git a/website/content/en/events/2009.adoc b/website/content/en/events/2009.adoc index d3a2ef7c99..ac88d5aeb4 100644 --- a/website/content/en/events/2009.adoc +++ b/website/content/en/events/2009.adoc @@ -7,5 +7,3 @@ year: 2009 = FreeBSD Past Events Please send details of any FreeBSD related events or events that are of interest for FreeBSD users which are not listed here to freebsd-doc@FreeBSD.org. - -Countries and regions displayed in dark red on the map below are hosting upcoming FreeBSD-related events. Countries that have hosted FreeBSD-related events in the past show up in yellow or orange, with darker colors representing a larger number of previous events. diff --git a/website/content/en/events/2010.adoc b/website/content/en/events/2010.adoc index b6ea650cd6..83b07176c2 100644 --- a/website/content/en/events/2010.adoc +++ b/website/content/en/events/2010.adoc @@ -7,5 +7,3 @@ year: 2010 = FreeBSD Past Events Please send details of any FreeBSD related events or events that are of interest for FreeBSD users which are not listed here to freebsd-doc@FreeBSD.org. - -Countries and regions displayed in dark red on the map below are hosting upcoming FreeBSD-related events. Countries that have hosted FreeBSD-related events in the past show up in yellow or orange, with darker colors representing a larger number of previous events. diff --git a/website/content/en/events/2011.adoc b/website/content/en/events/2011.adoc index eae4fc9679..bd368f023d 100644 --- a/website/content/en/events/2011.adoc +++ b/website/content/en/events/2011.adoc @@ -7,5 +7,3 @@ year: 2011 = FreeBSD Past Events Please send details of any FreeBSD related events or events that are of interest for FreeBSD users which are not listed here to freebsd-doc@FreeBSD.org. - -Countries and regions displayed in dark red on the map below are hosting upcoming FreeBSD-related events. Countries that have hosted FreeBSD-related events in the past show up in yellow or orange, with darker colors representing a larger number of previous events. diff --git a/website/content/en/events/2012.adoc b/website/content/en/events/2012.adoc index 10c3d5eb77..7fba506c0e 100644 --- a/website/content/en/events/2012.adoc +++ b/website/content/en/events/2012.adoc @@ -7,5 +7,3 @@ year: 2012 = FreeBSD Past Events Please send details of any FreeBSD related events or events that are of interest for FreeBSD users which are not listed here to freebsd-doc@FreeBSD.org. - -Countries and regions displayed in dark red on the map below are hosting upcoming FreeBSD-related events. Countries that have hosted FreeBSD-related events in the past show up in yellow or orange, with darker colors representing a larger number of previous events. diff --git a/website/content/en/events/2013.adoc b/website/content/en/events/2013.adoc index 5fd0d45c64..ad0d1cb238 100644 --- a/website/content/en/events/2013.adoc +++ b/website/content/en/events/2013.adoc @@ -7,5 +7,3 @@ year: 2013 = FreeBSD Past Events Please send details of any FreeBSD related events or events that are of interest for FreeBSD users which are not listed here to freebsd-doc@FreeBSD.org. - -Countries and regions displayed in dark red on the map below are hosting upcoming FreeBSD-related events. Countries that have hosted FreeBSD-related events in the past show up in yellow or orange, with darker colors representing a larger number of previous events. diff --git a/website/content/en/events/2014.adoc b/website/content/en/events/2014.adoc index e635ab1379..548b59d71f 100644 --- a/website/content/en/events/2014.adoc +++ b/website/content/en/events/2014.adoc @@ -7,5 +7,3 @@ year: 2014 = FreeBSD Past Events Please send details of any FreeBSD related events or events that are of interest for FreeBSD users which are not listed here to freebsd-doc@FreeBSD.org. - -Countries and regions displayed in dark red on the map below are hosting upcoming FreeBSD-related events. Countries that have hosted FreeBSD-related events in the past show up in yellow or orange, with darker colors representing a larger number of previous events. diff --git a/website/content/en/events/2015.adoc b/website/content/en/events/2015.adoc index 684e7e6e86..e32c1c1411 100644 --- a/website/content/en/events/2015.adoc +++ b/website/content/en/events/2015.adoc @@ -7,5 +7,3 @@ year: 2015 = FreeBSD Past Events Please send details of any FreeBSD related events or events that are of interest for FreeBSD users which are not listed here to freebsd-doc@FreeBSD.org. - -Countries and regions displayed in dark red on the map below are hosting upcoming FreeBSD-related events. Countries that have hosted FreeBSD-related events in the past show up in yellow or orange, with darker colors representing a larger number of previous events. diff --git a/website/content/en/events/2016.adoc b/website/content/en/events/2016.adoc index 83c4e0c5f1..cef6741818 100644 --- a/website/content/en/events/2016.adoc +++ b/website/content/en/events/2016.adoc @@ -7,5 +7,3 @@ year: 2016 = FreeBSD Past Events Please send details of any FreeBSD related events or events that are of interest for FreeBSD users which are not listed here to freebsd-doc@FreeBSD.org. - -Countries and regions displayed in dark red on the map below are hosting upcoming FreeBSD-related events. Countries that have hosted FreeBSD-related events in the past show up in yellow or orange, with darker colors representing a larger number of previous events. diff --git a/website/content/en/events/2017.adoc b/website/content/en/events/2017.adoc index 4723378198..4b8038ffc2 100644 --- a/website/content/en/events/2017.adoc +++ b/website/content/en/events/2017.adoc @@ -7,5 +7,3 @@ year: 2017 = FreeBSD Past Events Please send details of any FreeBSD related events or events that are of interest for FreeBSD users which are not listed here to freebsd-doc@FreeBSD.org. - -Countries and regions displayed in dark red on the map below are hosting upcoming FreeBSD-related events. Countries that have hosted FreeBSD-related events in the past show up in yellow or orange, with darker colors representing a larger number of previous events. diff --git a/website/content/en/events/2018.adoc b/website/content/en/events/2018.adoc index f8e8d1418c..4687c72371 100644 --- a/website/content/en/events/2018.adoc +++ b/website/content/en/events/2018.adoc @@ -7,5 +7,3 @@ year: 2018 = FreeBSD Past Events Please send details of any FreeBSD related events or events that are of interest for FreeBSD users which are not listed here to freebsd-doc@FreeBSD.org. - -Countries and regions displayed in dark red on the map below are hosting upcoming FreeBSD-related events. Countries that have hosted FreeBSD-related events in the past show up in yellow or orange, with darker colors representing a larger number of previous events. diff --git a/website/content/en/events/2019.adoc b/website/content/en/events/2019.adoc index 6c7f31a224..51d439cc76 100644 --- a/website/content/en/events/2019.adoc +++ b/website/content/en/events/2019.adoc @@ -7,5 +7,3 @@ year: 2019 = FreeBSD Past Events Please send details of any FreeBSD related events or events that are of interest for FreeBSD users which are not listed here to freebsd-doc@FreeBSD.org. - -Countries and regions displayed in dark red on the map below are hosting upcoming FreeBSD-related events. Countries that have hosted FreeBSD-related events in the past show up in yellow or orange, with darker colors representing a larger number of previous events. diff --git a/website/content/en/events/2020.adoc b/website/content/en/events/2020.adoc index 4a7766fd22..a078b71fe8 100644 --- a/website/content/en/events/2020.adoc +++ b/website/content/en/events/2020.adoc @@ -7,5 +7,3 @@ year: 2020 = FreeBSD Past Events Please send details of any FreeBSD related events or events that are of interest for FreeBSD users which are not listed here to freebsd-doc@FreeBSD.org. - -Countries and regions displayed in dark red on the map below are hosting upcoming FreeBSD-related events. Countries that have hosted FreeBSD-related events in the past show up in yellow or orange, with darker colors representing a larger number of previous events. diff --git a/website/content/en/events/2021.adoc b/website/content/en/events/2021.adoc index 22af582d92..9d6ff930bf 100644 --- a/website/content/en/events/2021.adoc +++ b/website/content/en/events/2021.adoc @@ -7,5 +7,3 @@ year: 2021 = FreeBSD Past Events Please send details of any FreeBSD related events or events that are of interest for FreeBSD users which are not listed here to freebsd-doc@FreeBSD.org. - -Countries and regions displayed in dark red on the map below are hosting upcoming FreeBSD-related events. Countries that have hosted FreeBSD-related events in the past show up in yellow or orange, with darker colors representing a larger number of previous events. diff --git a/website/content/en/events/2022.adoc b/website/content/en/events/2022.adoc index 00ed6feee7..01572c2137 100644 --- a/website/content/en/events/2022.adoc +++ b/website/content/en/events/2022.adoc @@ -7,5 +7,3 @@ year: 2022 = FreeBSD Past Events Please send details of any FreeBSD related events or events that are of interest for FreeBSD users which are not listed here to freebsd-doc@FreeBSD.org. - -Countries and regions displayed in dark red on the map below are hosting upcoming FreeBSD-related events. Countries that have hosted FreeBSD-related events in the past show up in yellow or orange, with darker colors representing a larger number of previous events. diff --git a/website/content/en/events/_index.adoc b/website/content/en/events/_index.adoc index 41ac0fc4f8..b013917568 100644 --- a/website/content/en/events/_index.adoc +++ b/website/content/en/events/_index.adoc @@ -6,5 +6,3 @@ sidenav: community = FreeBSD Events Please send details of any FreeBSD related events or events that are of interest for FreeBSD users which are not listed here to freebsd-doc@FreeBSD.org. - -Countries and regions displayed in dark red on the map below are hosting upcoming FreeBSD-related events. Countries that have hosted FreeBSD-related events in the past show up in yellow or orange, with darker colors representing a larger number of previous events. diff --git a/website/themes/beastie/layouts/events/list.html b/website/themes/beastie/layouts/events/list.html index 97faff7303..0d00620073 100644 --- a/website/themes/beastie/layouts/events/list.html +++ b/website/themes/beastie/layouts/events/list.html @@ -27,37 +27,6 @@ {{ $eventsData = $dataDefaultLanguage }} {{ end }} - - {{ $countriesCodes := slice }} - {{ $countriesCodesTimes := newScratch }} - - {{ with $eventsData }} - {{ range (sort .events "year" "desc") }} - {{ range .events }} - {{ if .countryCode }} - {{ $countriesCodes = $countriesCodes | append .countryCode }} - - {{ if $countriesCodesTimes.Get .countryCode }} - {{ $countriesCodesTimes.Add .countryCode 1 }} - {{ else }} - {{ $countriesCodesTimes.Set .countryCode 1 }} - {{ end }} - {{ end }} - {{ end }} - {{ end }} - {{ end }} - - {{ $countriesCodes = $countriesCodes | uniq }} - - {{ $countriesTimes := slice }} - {{ range $element := $countriesCodes }} - {{ $countriesTimes = $countriesTimes | append ($countriesCodesTimes.Get .) }} - {{ end }} - - {{ $eventsImageUrl := (printf "https://chart.googleapis.com/chart?cht=t&chs=400x200&chtm=world&chco=ffffff,ffbe38,600000&chf=bg,s,4D89F9&chd=t:%s&chld=%s" (delimit $countriesTimes ",") (delimit $countriesCodes "")) }} - - events map - {{ $eventsCounter := 0 }} {{ if isset .Params "year" }} @@ -113,7 +82,7 @@

{{ .name }}, {{ .site }}, {{ .city }}, {{ .country }}
- {{ dateFormat "02 January, 2006" .startDate }} - {{ dateFormat "02 January, 2006" .endDate }} + {{ dateFormat "02" .startDate }} - {{ dateFormat "02 January, 2006" .endDate }}
{{ .description | safeHTML }}

@@ -143,7 +112,7 @@

{{ .name }}, {{ .site }}, {{ .city }}, {{ .country }}
- {{ dateFormat "02 January, 2006" .startDate }} - {{ dateFormat "02 January, 2006" .endDate }} + {{ dateFormat "02" .startDate }} - {{ dateFormat "02 January, 2006" .endDate }}
{{ .description | safeHTML }}

@@ -188,7 +157,7 @@

{{ .name }}, {{ .site }}, {{ .city }}, {{ .country }}
- {{ dateFormat "02 January, 2006" .startDate }} - {{ dateFormat "02 January, 2006" .endDate }} + {{ dateFormat "02" .startDate }} - {{ dateFormat "02 January, 2006" .endDate }}
{{ .description | safeHTML }}

diff --git a/website/themes/beastie/layouts/events/single.html b/website/themes/beastie/layouts/events/single.html index 542de502f2..0d00620073 100644 --- a/website/themes/beastie/layouts/events/single.html +++ b/website/themes/beastie/layouts/events/single.html @@ -27,37 +27,6 @@ {{ $eventsData = $dataDefaultLanguage }} {{ end }} - - {{ $countriesCodes := slice }} - {{ $countriesCodesTimes := newScratch }} - - {{ with $eventsData }} - {{ range (sort .events "year" "desc") }} - {{ range .events }} - {{ if .countryCode }} - {{ $countriesCodes = $countriesCodes | append .countryCode }} - - {{ if $countriesCodesTimes.Get .countryCode }} - {{ $countriesCodesTimes.Add .countryCode 1 }} - {{ else }} - {{ $countriesCodesTimes.Set .countryCode 1 }} - {{ end }} - {{ end }} - {{ end }} - {{ end }} - {{ end }} - - {{ $countriesCodes = $countriesCodes | uniq }} - - {{ $countriesTimes := slice }} - {{ range $element := $countriesCodes }} - {{ $countriesTimes = $countriesTimes | append ($countriesCodesTimes.Get .) }} - {{ end }} - - {{ $eventsImageUrl := (printf "https://chart.googleapis.com/chart?cht=t&chs=400x200&chtm=world&chco=ffffff,ffbe38,600000&chf=bg,s,4D89F9&chd=t:%s&chld=%s" (delimit $countriesTimes ",") (delimit $countriesCodes "")) }} - - events map - {{ $eventsCounter := 0 }} {{ if isset .Params "year" }}