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:
parent
5e15ddb4f4
commit
56bdf62c9d
1 changed files with 1 additions and 1 deletions
|
@ -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 -}}
|
||||
|
|
Loading…
Reference in a new issue