Skip to content

Commit

Permalink
use .Sites.Default instead of .Sites.First
Browse files Browse the repository at this point in the history
# Problem

The warning
```
INFO  deprecated: .Sites.First was deprecated in Hugo v0.127.0 and will be removed in a future release. Use .Sites.Default instead.
```

appears

# Solution

Follow the warning. Use `.Sites.Default`
  • Loading branch information
grimreaper committed Jun 6, 2024
1 parent 5e15ddb commit 56bdf62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/docs/brand.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<h2 class="book-brand">
<a class="flex align-center" href="{{ cond (not .Site.Home.File) .Sites.First.Home.RelPermalink .Site.Home.RelPermalink }}">
<a class="flex align-center" href="{{ cond (not .Site.Home.File) .Sites.Default.Home.RelPermalink .Site.Home.RelPermalink }}">
{{- with .Site.Params.BookLogo -}}
<img src="{{ . | relURL }}" alt="Logo" />
{{- end -}}
Expand Down

0 comments on commit 56bdf62

Please sign in to comment.