Skip to content

Commit

Permalink
Deprecate .Sites.First in favor of .Sites.Default
Browse files Browse the repository at this point in the history
  • Loading branch information
jmooring committed Jun 1, 2024
1 parent c37dd68 commit f908cdf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion content/en/methods/page/Sites.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
```
Expand Down
2 changes: 1 addition & 1 deletion content/en/methods/site/Sites.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
```
Expand Down

0 comments on commit f908cdf

Please sign in to comment.