fix(hugo): update deprecated LanguageCode to Locale

This commit is contained in:
abdalrahmanshaban0 committed 2026-05-04 17:19:12 +03:00
1 parent da8ca782aa
commit 1eb3d8da3e
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -32,7 +32,7 @@
<link rel="canonical" href="{{ .Permalink }}">
{{ if .IsTranslated }}
{{ range .AllTranslations }}
{{ $hreflang := .Language.LanguageCode | default .Language.Lang }}
{{ $hreflang := .Language.Locale | default .Language.Lang }}
{{ if $hreflang }}
<link rel="alternate" hreflang="{{ $hreflang }}" href="{{ .Permalink }}">
{{ end }}