mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-17 04:14:26 +00:00
feat(hugo): replace deprecated APIs for Hugo v0.156+ compatibility
Migrate site.Data → hugo.Data (42 occurrences), site.IsMultiLingual → hugo.IsMultilingual, and site.AllPages → hugo.Sites nested range. Simplify Netlify redirects template to use pre-processed aliases instead of relLangURL per gohugoio/hugo#14408.
This commit is contained in:
1 parent
94703c5c4f
commit
ef8ed449c7
25 files changed
+5824
-5838
No files matched your search
@@ -104,7 +104,7 @@
|
||||
<li class="lg:px-2">
|
||||
<select onchange="document.documentElement.setAttribute('data-theme-pack', this.value); localStorage.setItem('hb-theme-pack', this.value);" class="bg-transparent text-[var(--hb-color-header-fg)] border-none focus:ring-0 cursor-pointer text-sm font-medium">
|
||||
<option value="">Theme</option>
|
||||
{{ range $name, $data := site.Data.themes }}
|
||||
{{ range $name, $data := hugo.Data.themes }}
|
||||
<option value="{{ $name }}">{{ $name | humanize }}</option>
|
||||
{{ end }}
|
||||
</select>
|
||||
|
||||
@@ -181,7 +181,7 @@
|
||||
<div class="px-3">
|
||||
<select onchange="document.documentElement.setAttribute('data-theme-pack', this.value); localStorage.setItem('hb-theme-pack', this.value);" class="bg-transparent text-[var(--hb-color-header-fg)] border-none focus:ring-0 cursor-pointer text-sm font-medium">
|
||||
<option value="">Theme</option>
|
||||
{{ range $name, $data := site.Data.themes }}
|
||||
{{ range $name, $data := hugo.Data.themes }}
|
||||
<option value="{{ $name }}">{{ $name | humanize }}</option>
|
||||
{{ end }}
|
||||
</select>
|
||||
|
||||
Reference in new issue
Block a user