Skip to content

Commit

Permalink
replace .Site.IsMultiLingual with hugo.IsMultilingual (#609)
Browse files Browse the repository at this point in the history
# Problem

The warning
```
INFO  deprecated: .Site.IsMultiLingual was deprecated in Hugo v0.124.0
and will be removed in a future release. Use hugo.IsMultilingual
instead.``

shows up

# Solution

Follow the deprecation warning
  • Loading branch information
grimreaper committed May 18, 2024
1 parent 1c42a96 commit 1c78b92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/docs/menu.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<nav>
{{ partial "docs/brand" . }}
{{ partial "docs/search" . }}
{{ if .Site.IsMultiLingual }}
{{ if hugo.IsMultilingual }}
{{ partial "docs/languages" . }}
{{ end }}

Expand Down

0 comments on commit 1c78b92

Please sign in to comment.