mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-24 15:28:54 +00:00
Deprecate .Sites.First in favor of .Sites.Default
This commit is contained in:
@@ -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 }}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user