use .Sites.Default instead of .Sites.First

# 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`
This commit is contained in:
Eitan Adler 2024-06-05 23:20:14 -07:00
parent 5e15ddb4f4
commit 56bdf62c9d

View file

@ -1,5 +1,5 @@
<h2 class="book-brand"> <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 -}} {{- with .Site.Params.BookLogo -}}
<img src="{{ . | relURL }}" alt="Logo" /> <img src="{{ . | relURL }}" alt="Logo" />
{{- end -}} {{- end -}}