Deprecate .Sites.First in favor of .Sites.Default

This commit is contained in:
Joe Mooring
2024-06-02 06:42:27 -07:00
committed by GitHub
parent 076067b47c
commit de236b58b5
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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 }}
<a href="{{ .Home.Permalink }}">{{ .Title }}</a>
{{ end }}
```
+1 -1
View File
@@ -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 }}
<a href="{{ .Home.Permalink }}">{{ .Title }}</a>
{{ end }}
```