From f908cdfc6ed10842f56b7e61f87e0ef40539d7c3 Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Sat, 1 Jun 2024 06:06:31 -0700 Subject: [PATCH] Deprecate .Sites.First in favor of .Sites.Default Related to https://github.com/gohugoio/hugo/pull/12559 --- content/en/methods/page/Sites.md | 2 +- content/en/methods/site/Sites.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/content/en/methods/page/Sites.md b/content/en/methods/page/Sites.md index ce409a9ba7..cd240655e3 100644 --- a/content/en/methods/page/Sites.md +++ b/content/en/methods/page/Sites.md @@ -55,7 +55,7 @@ Produces a list of links to each home page: To render a link to the home page of the site corresponding to the default content language: ```go-html-template -{{ with .Sites.First }} +{{ with .Sites.Default }} {{ .Title }} {{ end }} ``` diff --git a/content/en/methods/site/Sites.md b/content/en/methods/site/Sites.md index caa9ae1c24..ac287d3b4d 100644 --- a/content/en/methods/site/Sites.md +++ b/content/en/methods/site/Sites.md @@ -52,7 +52,7 @@ Produces a list of links to each home page: To render a link to the home page of the site corresponding to the default content language: ```go-html-template -{{ with .Site.Sites.First }} +{{ with .Site.Sites.Default }} {{ .Title }} {{ end }} ```