mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-19 15:14:49 -04:00
Deprecate .Sites.First in favor of .Sites.Default
This commit is contained in:
parent
076067b47c
commit
de236b58b5
@ -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 }}
|
||||
```
|
||||
|
@ -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 }}
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user