diff options
| author | Danilo M. <danix@danix.xyz> | 2026-04-28 19:03:38 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-04-28 19:03:38 +0200 |
| commit | 78aec78d7c5977ee4367093b1fd6910e6c6b6cb4 (patch) | |
| tree | b570e508ecef974a3adb4578e570632cf22ac3a1 /layouts/partials/header.html | |
| parent | 175d0fa86ae8cdb78d35e84928655b5324cbc66e (diff) | |
| download | danixxyz-theme-78aec78d7c5977ee4367093b1fd6910e6c6b6cb4.tar.gz danixxyz-theme-78aec78d7c5977ee4367093b1fd6910e6c6b6cb4.zip | |
fix: update deprecated .Site.Languages and .Site.Data APIs to site.Languages and hugo.Data
- Replace .Site.Languages with site.Languages in hamburger-menu.html and header.html
- Replace .Site.Data with hugo.Data in repository/single.html and footer.html
- Add acronym shortcode for semantic HTML abbr tags with title attributes
Diffstat (limited to 'layouts/partials/header.html')
| -rw-r--r-- | layouts/partials/header.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 914e645..603f779 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -42,7 +42,7 @@ <div class="hidden md:flex gap-2"> {{ $currentLang := .Page.Language }} {{ $currentPath := .RelPermalink }} - {{ range .Site.Languages }} + {{ range site.Languages }} {{ $langCode := .Lang }} {{ $langName := .LanguageName }} {{ $current := eq $langCode $currentLang }} |
