git: 6747360110 - main - website: Replace deprecated attribute

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

URL: https://cgit.FreeBSD.org/doc/commit/?id=67473601100cbf8bba453d53352676d52702f1c6

commit 67473601100cbf8bba453d53352676d52702f1c6
Author:     Fernando Apesteguía <fernape@FreeBSD.org>
AuthorDate: 2024-08-19 16:19:09 +0000
Commit:     Fernando Apesteguía <fernape@FreeBSD.org>
CommitDate: 2024-08-19 16:19:09 +0000

    website: Replace deprecated attribute
    
    Site.First has been deprecated since hugo 0.127.
---
 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 abe43c5c00..f6adf934ca 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.First.Language.Lang }}{{ $eventsData := $data }}{{ with $eventsData }}{{ range (sort .events "year" "desc") }}{{ range (sort .events "startDate" "desc") }}
+METHOD:PUBLISH{{ $data := index .Site.Data .Sites.Default.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 6d729b3328..97faff7303 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.First.Language.Lang }}
+        {{ $dataDefaultLanguage := index .Site.Data .Sites.Default.Language.Lang }}
         {{ $eventsData = $dataDefaultLanguage }}
       {{ end }}
 
diff --git a/website/themes/beastie/layouts/events/list.ics b/website/themes/beastie/layouts/events/list.ics
index abe43c5c00..f6adf934ca 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.First.Language.Lang }}{{ $eventsData := $data }}{{ with $eventsData }}{{ range (sort .events "year" "desc") }}{{ range (sort .events "startDate" "desc") }}
+METHOD:PUBLISH{{ $data := index .Site.Data .Sites.Default.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 dc702fe43a..542de502f2 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.First.Language.Lang }}
+        {{ $dataDefaultLanguage := index .Site.Data .Sites.Default.Language.Lang }}
         {{ $eventsData = $dataDefaultLanguage }}
       {{ end }}
 
diff --git a/website/themes/beastie/layouts/news/list.html b/website/themes/beastie/layouts/news/list.html
index a09ce25d88..3f86c505d4 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.First.Language.Lang }}
+          {{ $dataDefaultLanguage := index .Site.Data .Sites.Default.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 a09ce25d88..3f86c505d4 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.First.Language.Lang }}
+          {{ $dataDefaultLanguage := index .Site.Data .Sites.Default.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 8e62933fb9..5d959a5ef2 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.First.Language.Lang }}
+  {{ $dataDefaultLanguage := index .Site.Data .Sites.Default.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 0b8f5b7bbf..3026998b59 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.First.Language.Lang }}
+  {{ $dataDefaultLanguage := index .Site.Data .Sites.Default.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 68d0a2ae86..8aaaf074af 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.First.Language.Lang }}
+  {{ $dataDefaultLanguage := index .Site.Data .Sites.Default.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 0fc6931a9a..32423ad919 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.First.Language.Lang }}
+  {{ $dataDefaultLanguage := index .Site.Data .Sites.Default.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 f7b3807a94..c596ba87d8 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.First.Language.Lang }}
+  {{ $dataDefaultLanguage := index .Site.Data .Sites.Default.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 1d55d0d6d3..79148da802 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.First.Language.Lang }}
+  {{ $dataDefaultLanguage := index .Site.Data .Sites.Default.Language.Lang }}
   {{ $eventsData = $dataDefaultLanguage }}
 {{ end }}
 
diff --git a/website/themes/beastie/layouts/partials/news.html b/website/themes/beastie/layouts/partials/news.html
index 23b22fbaa7..ce1052fe45 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.First.Language.Lang }}
+  {{ $dataDefaultLanguage := index .Site.Data .Sites.Default.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 3b3b4a79a2..d3bed55a6f 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.First.Language.Lang }}
+  {{ $dataDefaultLanguage := index .Site.Data .Sites.Default.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 ee9fc61001..d1d5772610 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.First.Language.Lang }}
+          {{ $dataDefaultLanguage := index .Site.Data .Sites.Default.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 ee9fc61001..d1d5772610 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.First.Language.Lang }}
+          {{ $dataDefaultLanguage := index .Site.Data .Sites.Default.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 16e4092a24..14d2e8683a 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.First.Language.Lang }}
+{{ $eventsData := index .Page.Site.Data .Page.Sites.Default.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 9a09c475b0..b041e9b1c0 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.First.Language.Lang }}
+{{ $usergroupsData := index .Page.Site.Data .Page.Sites.Default.Language.Lang }}
 
 <!-- Load usergroups and number of them-->
 {{ $usergroupsCodes := slice }}