mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
fix: eliminate deprecation warnings with hugo version 0.156.0 (#702)
* Fix deprecation warning with latest hugo version 0.156.0 * fix: use `hugo.Data` to replace the discarded `.Site.Data` * chore(hugo): update Hugo version requirements to 0.156.0 --------- Co-authored-by: Cell <1024@lruihao.cn>
This commit is contained in:
committed by
GitHub
parent
581d8373bf
commit
175cf888d5
@@ -89,9 +89,9 @@
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- /* Site Data: load from data/filetree/ */ -}}
|
||||
{{- /* Hugo Data: load from data/filetree/ */ -}}
|
||||
{{- if $dataName | and (not $treeData) -}}
|
||||
{{- with index .Site.Data.filetree (printf "%v.%v" $dataName .Page.Language) | default (index .Site.Data.filetree $dataName) -}}
|
||||
{{- with index hugo.Data.filetree (printf "%v.%v" $dataName .Page.Language) | default (index hugo.Data.filetree $dataName) -}}
|
||||
{{- $treeData = . -}}
|
||||
{{- else -}}
|
||||
{{- $exts := delimit (apply $supportExts "trim" "." "\\.") "|" -}}
|
||||
|
||||
Reference in New Issue
Block a user