mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-15 02:16:10 +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
@@ -29,13 +29,13 @@
|
||||
|
||||
{{ if $vendor }}
|
||||
{{/* Third-party theme: data/themes/vendor/name.yaml */}}
|
||||
{{ $vendor_themes := index site.Data.themes $vendor }}
|
||||
{{ $vendor_themes := index hugo.Data.themes $vendor }}
|
||||
{{ if $vendor_themes }}
|
||||
{{ $raw_theme = index $vendor_themes $name }}
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
{{/* Built-in or user theme: data/themes/name.yaml */}}
|
||||
{{ $raw_theme = index site.Data.themes $name }}
|
||||
{{ $raw_theme = index hugo.Data.themes $name }}
|
||||
{{ end }}
|
||||
|
||||
{{/* Validate theme structure */}}
|
||||
|
||||
Reference in new issue
Block a user