mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
fix: if content/_index.md exist, config error
This commit is contained in:
@@ -1138,7 +1138,7 @@ sort = false
|
||||
boxed = true
|
||||
|
||||
# FixIt 0.3.12 | NEW Custom partials config
|
||||
# Custom partials must be stored in the /layouts/partials/ directory.
|
||||
# Custom partials must be stored in the /layouts/_partials/ directory.
|
||||
# Depends on open custom blocks https://fixit.lruihao.cn/references/blocks/
|
||||
[params.customPartials]
|
||||
head = []
|
||||
|
||||
@@ -317,7 +317,7 @@ FixIt theme assets partial
|
||||
{{- $configJS = add $configJS "console.log('Page config:', window.config);" -}}
|
||||
{{- end -}}
|
||||
{{- $targetPath := "" -}}
|
||||
{{- if $uniqueFileId -}}
|
||||
{{- if $uniqueFileId | or .IsHome -}}
|
||||
{{- $targetPath = printf "%s/js/config/%s.js" $languagePrefix $uniqueFileId -}}
|
||||
{{- end -}}
|
||||
{{- dict "Content" $configJS "Path" $targetPath "Defer" true | dict "Page" . "Data" | partial "store/script.html" -}}
|
||||
@@ -325,7 +325,7 @@ FixIt theme assets partial
|
||||
{{- /* MathJax plugin */ -}}
|
||||
{{- if .Store.Get "hasMathJax" | and (not $isArchivesOrOffline) -}}
|
||||
{{- $targetPath := "" -}}
|
||||
{{- if $uniqueFileId -}}
|
||||
{{- if $uniqueFileId | or .IsHome -}}
|
||||
{{- $targetPath = printf "%s/js/lib/mathjax/%s.min.js" $languagePrefix $uniqueFileId -}}
|
||||
{{- end -}}
|
||||
{{- $options := dict "targetPath" $targetPath "minify" hugo.IsProduction -}}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{{- hugo.Store.Set "version" "v0.4.0-alpha.3-20251224074056-4fec1cda" -}}
|
||||
{{- hugo.Store.Set "version" "v0.4.0-alpha.3-20251225084220-e5014773" -}}
|
||||
{{- .Store.Set "this" dict -}}
|
||||
|
||||
{{- partial "init/detection-env.html" . -}}
|
||||
|
||||
@@ -106,7 +106,7 @@
|
||||
{{- $uniqueFileId = .UniqueID -}}
|
||||
{{- end -}}
|
||||
{{- $targetPath := "" -}}
|
||||
{{- if $uniqueFileId -}}
|
||||
{{- if $uniqueFileId | or .IsHome -}}
|
||||
{{- $targetPath = printf "%s/js/config/post-chat/%s.js" $languagePrefix $uniqueFileId -}}
|
||||
{{- end -}}
|
||||
{{- dict "Content" $configJS "Path" $targetPath "Defer" true | dict "Page" . "Data" | partial "store/script.html" -}}
|
||||
|
||||
Reference in New Issue
Block a user