#806, fix 0.156 deprecations

This commit is contained in:
Alex Shpak
2026-04-23 16:29:12 +02:00
parent 97d7ee40ed
commit ddc76d8885
6 changed files with 9 additions and 6 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
<h2 class="book-brand">
<a class="flex align-center" href="{{ cond (not .Site.Home.File) .Sites.Default.Home.RelPermalink .Site.Home.RelPermalink }}">
<a class="flex align-center" href="{{ cond (not .Site.Home.File) hugo.Sites.Default.Home.RelPermalink .Site.Home.RelPermalink }}">
{{- with .Site.Params.BookLogo -}}
<img src="{{ . | relURL }}" alt="{{ partial "docs/text/i18n" "Logo" }}" />
{{- end -}}
+1 -1
View File
@@ -21,7 +21,7 @@
</label>
<ul>
{{ range .Site.Languages }}{{ with index $translations .Name }}
{{ range hugo.Sites }}{{ with index $translations .Language.Name }}
<li>
<a href="{{ cond hugo.IsMultihost .Permalink .RelPermalink }}" class="flex flex-auto">
{{ .Language.Label }}