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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

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 }}
```

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 }}
```