git: 7a9cfade2b - main - Revert "website: Replace deprecated attribute"

From: Fernando Apesteguía <fernape_at_FreeBSD.org>
Date: Tue, 20 Aug 2024 16:44:33 UTC
The branch main has been updated by fernape:

URL: https://cgit.FreeBSD.org/doc/commit/?id=7a9cfade2b6f68f2bc135a0557b9bca30192f7f1

commit 7a9cfade2b6f68f2bc135a0557b9bca30192f7f1
Author:     Fernando Apesteguía <fernape@FreeBSD.org>
AuthorDate: 2024-08-20 16:23:23 +0000
Commit:     Fernando Apesteguía <fernape@FreeBSD.org>
CommitDate: 2024-08-20 16:23:23 +0000

    Revert "website: Replace deprecated attribute"
    
    This reverts commit 67473601100cbf8bba453d53352676d52702f1c6.
    To be reapplied when the gohugo 0.133.0 package is available in the CI.
---
 website/themes/beastie/layouts/_default/list.ics                        | 2 +-
 website/themes/beastie/layouts/events/list.html                         | 2 +-
 website/themes/beastie/layouts/events/list.ics                          | 2 +-
 website/themes/beastie/layouts/events/single.html                       | 2 +-
 website/themes/beastie/layouts/news/list.html                           | 2 +-
 website/themes/beastie/layouts/news/single.html                         | 2 +-
 website/themes/beastie/layouts/partials/commercial-consulting.html      | 2 +-
 website/themes/beastie/layouts/partials/commercial-hardware.html        | 2 +-
 website/themes/beastie/layouts/partials/commercial-isp.html             | 2 +-
 website/themes/beastie/layouts/partials/commercial-misc.html            | 2 +-
 website/themes/beastie/layouts/partials/commercial-software.html        | 2 +-
 website/themes/beastie/layouts/partials/events.html                     | 2 +-
 website/themes/beastie/layouts/partials/news.html                       | 2 +-
 website/themes/beastie/layouts/partials/press.html                      | 2 +-
 website/themes/beastie/layouts/press/list.html                          | 2 +-
 website/themes/beastie/layouts/press/single.html                        | 2 +-
 website/themes/beastie/layouts/shortcodes/get-event-last-year-info.html | 2 +-
 website/themes/beastie/layouts/shortcodes/get-usergroups-info.html      | 2 +-
 18 files changed, 18 insertions(+), 18 deletions(-)

diff --git a/website/themes/beastie/layouts/_default/list.ics b/website/themes/beastie/layouts/_default/list.ics
index f6adf934ca..abe43c5c00 100644
--- a/website/themes/beastie/layouts/_default/list.ics
+++ b/website/themes/beastie/layouts/_default/list.ics
@@ -2,7 +2,7 @@ BEGIN:VCALENDAR
 VERSION:2.0
 PRODID:-//FreeBSD//events calendar//EN
 CALSCALE:GREGORIAN
-METHOD:PUBLISH{{ $data := index .Site.Data .Sites.Default.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
 UID:{{ .id }}
 SUMMARY:{{ .name }}
diff --git a/website/themes/beastie/layouts/events/list.html b/website/themes/beastie/layouts/events/list.html
index 97faff7303..6d729b3328 100644
--- a/website/themes/beastie/layouts/events/list.html
+++ b/website/themes/beastie/layouts/events/list.html
@@ -23,7 +23,7 @@
         {{ $data := index .Site.Data $.Language.Lang }}
         {{ $eventsData = $data }}
       {{ else }}
-        {{ $dataDefaultLanguage := index .Site.Data .Sites.Default.Language.Lang }}
+        {{ $dataDefaultLanguage := index .Site.Data .Sites.First.Language.Lang }}
         {{ $eventsData = $dataDefaultLanguage }}
       {{ end }}
 
diff --git a/website/themes/beastie/layouts/events/list.ics b/website/themes/beastie/layouts/events/list.ics
index f6adf934ca..abe43c5c00 100644
--- a/website/themes/beastie/layouts/events/list.ics
+++ b/website/themes/beastie/layouts/events/list.ics
@@ -2,7 +2,7 @@ BEGIN:VCALENDAR
 VERSION:2.0
 PRODID:-//FreeBSD//events calendar//EN
 CALSCALE:GREGORIAN
-METHOD:PUBLISH{{ $data := index .Site.Data .Sites.Default.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
 UID:{{ .id }}
 SUMMARY:{{ .name }}
diff --git a/website/themes/beastie/layouts/events/single.html b/website/themes/beastie/layouts/events/single.html
index 542de502f2..dc702fe43a 100644
--- a/website/themes/beastie/layouts/events/single.html
+++ b/website/themes/beastie/layouts/events/single.html
@@ -23,7 +23,7 @@
         {{ $data := index .Site.Data $.Language.Lang }}
         {{ $eventsData = $data }}
       {{ else }}
-        {{ $dataDefaultLanguage := index .Site.Data .Sites.Default.Language.Lang }}
+        {{ $dataDefaultLanguage := index .Site.Data .Sites.First.Language.Lang }}
         {{ $eventsData = $dataDefaultLanguage }}
       {{ end }}
 
diff --git a/website/themes/beastie/layouts/news/list.html b/website/themes/beastie/layouts/news/list.html
index 3f86c505d4..a09ce25d88 100644
--- a/website/themes/beastie/layouts/news/list.html
+++ b/website/themes/beastie/layouts/news/list.html
@@ -25,7 +25,7 @@
           {{ $data := index .Site.Data $.Language.Lang }}
           {{ $newsData = $data.news }}
         {{ else }}
-          {{ $dataDefaultLanguage := index .Site.Data .Sites.Default.Language.Lang }}
+          {{ $dataDefaultLanguage := index .Site.Data .Sites.First.Language.Lang }}
           {{ $newsData = $dataDefaultLanguage.news }}
         {{ end }}
 
diff --git a/website/themes/beastie/layouts/news/single.html b/website/themes/beastie/layouts/news/single.html
index 3f86c505d4..a09ce25d88 100644
--- a/website/themes/beastie/layouts/news/single.html
+++ b/website/themes/beastie/layouts/news/single.html
@@ -25,7 +25,7 @@
           {{ $data := index .Site.Data $.Language.Lang }}
           {{ $newsData = $data.news }}
         {{ else }}
-          {{ $dataDefaultLanguage := index .Site.Data .Sites.Default.Language.Lang }}
+          {{ $dataDefaultLanguage := index .Site.Data .Sites.First.Language.Lang }}
           {{ $newsData = $dataDefaultLanguage.news }}
         {{ end }}
 
diff --git a/website/themes/beastie/layouts/partials/commercial-consulting.html b/website/themes/beastie/layouts/partials/commercial-consulting.html
index 5d959a5ef2..8e62933fb9 100644
--- a/website/themes/beastie/layouts/partials/commercial-consulting.html
+++ b/website/themes/beastie/layouts/partials/commercial-consulting.html
@@ -5,7 +5,7 @@
   {{ $data := index .Site.Data $.Language.Lang }}
   {{ $consultingVendorsData = $data.vendors }}
 {{ else }}
-  {{ $dataDefaultLanguage := index .Site.Data .Sites.Default.Language.Lang }}
+  {{ $dataDefaultLanguage := index .Site.Data .Sites.First.Language.Lang }}
   {{ $consultingVendorsData = $dataDefaultLanguage.vendors }}
 {{ end }}
 
diff --git a/website/themes/beastie/layouts/partials/commercial-hardware.html b/website/themes/beastie/layouts/partials/commercial-hardware.html
index 3026998b59..0b8f5b7bbf 100644
--- a/website/themes/beastie/layouts/partials/commercial-hardware.html
+++ b/website/themes/beastie/layouts/partials/commercial-hardware.html
@@ -5,7 +5,7 @@
   {{ $data := index .Site.Data $.Language.Lang }}
   {{ $hardwareVendorsData = $data.vendors }}
 {{ else }}
-  {{ $dataDefaultLanguage := index .Site.Data .Sites.Default.Language.Lang }}
+  {{ $dataDefaultLanguage := index .Site.Data .Sites.First.Language.Lang }}
   {{ $hardwareVendorsData = $dataDefaultLanguage.vendors }}
 {{ end }}
 
diff --git a/website/themes/beastie/layouts/partials/commercial-isp.html b/website/themes/beastie/layouts/partials/commercial-isp.html
index 8aaaf074af..68d0a2ae86 100644
--- a/website/themes/beastie/layouts/partials/commercial-isp.html
+++ b/website/themes/beastie/layouts/partials/commercial-isp.html
@@ -5,7 +5,7 @@
   {{ $data := index .Site.Data $.Language.Lang }}
   {{ $ispVendorsData = $data.vendors }}
 {{ else }}
-  {{ $dataDefaultLanguage := index .Site.Data .Sites.Default.Language.Lang }}
+  {{ $dataDefaultLanguage := index .Site.Data .Sites.First.Language.Lang }}
   {{ $ispVendorsData = $dataDefaultLanguage.vendors }}
 {{ end }}
 
diff --git a/website/themes/beastie/layouts/partials/commercial-misc.html b/website/themes/beastie/layouts/partials/commercial-misc.html
index 32423ad919..0fc6931a9a 100644
--- a/website/themes/beastie/layouts/partials/commercial-misc.html
+++ b/website/themes/beastie/layouts/partials/commercial-misc.html
@@ -5,7 +5,7 @@
   {{ $data := index .Site.Data $.Language.Lang }}
   {{ $miscVendorsData = $data.vendors }}
 {{ else }}
-  {{ $dataDefaultLanguage := index .Site.Data .Sites.Default.Language.Lang }}
+  {{ $dataDefaultLanguage := index .Site.Data .Sites.First.Language.Lang }}
   {{ $miscVendorsData = $dataDefaultLanguage.vendors }}
 {{ end }}
 
diff --git a/website/themes/beastie/layouts/partials/commercial-software.html b/website/themes/beastie/layouts/partials/commercial-software.html
index c596ba87d8..f7b3807a94 100644
--- a/website/themes/beastie/layouts/partials/commercial-software.html
+++ b/website/themes/beastie/layouts/partials/commercial-software.html
@@ -5,7 +5,7 @@
   {{ $data := index .Site.Data $.Language.Lang }}
   {{ $softwareVendorsData = $data.vendors }}
 {{ else }}
-  {{ $dataDefaultLanguage := index .Site.Data .Sites.Default.Language.Lang }}
+  {{ $dataDefaultLanguage := index .Site.Data .Sites.First.Language.Lang }}
   {{ $softwareVendorsData = $dataDefaultLanguage.vendors }}
 {{ end }}
 
diff --git a/website/themes/beastie/layouts/partials/events.html b/website/themes/beastie/layouts/partials/events.html
index 79148da802..1d55d0d6d3 100644
--- a/website/themes/beastie/layouts/partials/events.html
+++ b/website/themes/beastie/layouts/partials/events.html
@@ -5,7 +5,7 @@
   {{ $data := index .Site.Data $.Language.Lang }}
   {{ $eventsData = $data }}
 {{ else }}
-  {{ $dataDefaultLanguage := index .Site.Data .Sites.Default.Language.Lang }}
+  {{ $dataDefaultLanguage := index .Site.Data .Sites.First.Language.Lang }}
   {{ $eventsData = $dataDefaultLanguage }}
 {{ end }}
 
diff --git a/website/themes/beastie/layouts/partials/news.html b/website/themes/beastie/layouts/partials/news.html
index ce1052fe45..23b22fbaa7 100644
--- a/website/themes/beastie/layouts/partials/news.html
+++ b/website/themes/beastie/layouts/partials/news.html
@@ -5,7 +5,7 @@
   {{ $data := index .Site.Data $.Language.Lang }}
   {{ $newsData = $data.news }}
 {{ else }}
-  {{ $dataDefaultLanguage := index .Site.Data .Sites.Default.Language.Lang }}
+  {{ $dataDefaultLanguage := index .Site.Data .Sites.First.Language.Lang }}
   {{ $newsData = $dataDefaultLanguage.news }}
 {{ end }}
 
diff --git a/website/themes/beastie/layouts/partials/press.html b/website/themes/beastie/layouts/partials/press.html
index d3bed55a6f..3b3b4a79a2 100644
--- a/website/themes/beastie/layouts/partials/press.html
+++ b/website/themes/beastie/layouts/partials/press.html
@@ -7,7 +7,7 @@
   {{ $data := index .Site.Data $.Language.Lang }}
   {{ $pressData = $data.press }}
 {{ else }}
-  {{ $dataDefaultLanguage := index .Site.Data .Sites.Default.Language.Lang }}
+  {{ $dataDefaultLanguage := index .Site.Data .Sites.First.Language.Lang }}
   {{ $pressData = $dataDefaultLanguage.press }}
 {{ end }}
 
diff --git a/website/themes/beastie/layouts/press/list.html b/website/themes/beastie/layouts/press/list.html
index d1d5772610..ee9fc61001 100644
--- a/website/themes/beastie/layouts/press/list.html
+++ b/website/themes/beastie/layouts/press/list.html
@@ -24,7 +24,7 @@
           {{ $data := index .Site.Data $.Language.Lang }}
           {{ $pressData = $data.press }}
         {{ else }}
-          {{ $dataDefaultLanguage := index .Site.Data .Sites.Default.Language.Lang }}
+          {{ $dataDefaultLanguage := index .Site.Data .Sites.First.Language.Lang }}
           {{ $pressData = $dataDefaultLanguage.press }}
         {{ end }}
 
diff --git a/website/themes/beastie/layouts/press/single.html b/website/themes/beastie/layouts/press/single.html
index d1d5772610..ee9fc61001 100644
--- a/website/themes/beastie/layouts/press/single.html
+++ b/website/themes/beastie/layouts/press/single.html
@@ -24,7 +24,7 @@
           {{ $data := index .Site.Data $.Language.Lang }}
           {{ $pressData = $data.press }}
         {{ else }}
-          {{ $dataDefaultLanguage := index .Site.Data .Sites.Default.Language.Lang }}
+          {{ $dataDefaultLanguage := index .Site.Data .Sites.First.Language.Lang }}
           {{ $pressData = $dataDefaultLanguage.press }}
         {{ end }}
 
diff --git a/website/themes/beastie/layouts/shortcodes/get-event-last-year-info.html b/website/themes/beastie/layouts/shortcodes/get-event-last-year-info.html
index 14d2e8683a..16e4092a24 100644
--- a/website/themes/beastie/layouts/shortcodes/get-event-last-year-info.html
+++ b/website/themes/beastie/layouts/shortcodes/get-event-last-year-info.html
@@ -1,6 +1,6 @@
 {{ $param := (.Get 0) }}
 
-{{ $eventsData := index .Page.Site.Data .Page.Sites.Default.Language.Lang }}
+{{ $eventsData := index .Page.Site.Data .Page.Sites.First.Language.Lang }}
 
 {{ $lastYear := sub (int (now.Format "2006")) 1 }}
 
diff --git a/website/themes/beastie/layouts/shortcodes/get-usergroups-info.html b/website/themes/beastie/layouts/shortcodes/get-usergroups-info.html
index b041e9b1c0..9a09c475b0 100644
--- a/website/themes/beastie/layouts/shortcodes/get-usergroups-info.html
+++ b/website/themes/beastie/layouts/shortcodes/get-usergroups-info.html
@@ -1,6 +1,6 @@
 {{ $param := (.Get 0) }}
 
-{{ $usergroupsData := index .Page.Site.Data .Page.Sites.Default.Language.Lang }}
+{{ $usergroupsData := index .Page.Site.Data .Page.Sites.First.Language.Lang }}
 
 <!-- Load usergroups and number of them-->
 {{ $usergroupsCodes := slice }}