diff --git a/layouts/_partials/assets.html b/layouts/_partials/assets.html
index 3f1406ba..463dfad0 100644
--- a/layouts/_partials/assets.html
+++ b/layouts/_partials/assets.html
@@ -317,7 +317,7 @@ FixIt theme assets partial
{{- $configJS = add $configJS "console.log('Page config:', window.config);" -}}
{{- end -}}
{{- $targetPath := "" -}}
-{{- if $uniqueFileId | or .IsHome -}}
+{{- if $uniqueFileId | and (not .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 | or .IsHome -}}
+ {{- if $uniqueFileId | and (not .IsHome) -}}
{{- $targetPath = printf "%s/js/lib/mathjax/%s.min.js" $languagePrefix $uniqueFileId -}}
{{- end -}}
{{- $options := dict "targetPath" $targetPath "minify" hugo.IsProduction -}}
diff --git a/layouts/_partials/init/index.html b/layouts/_partials/init/index.html
index c178ea2c..59820aa5 100644
--- a/layouts/_partials/init/index.html
+++ b/layouts/_partials/init/index.html
@@ -1,4 +1,4 @@
-{{- hugo.Store.Set "version" "v0.4.0-alpha.3-20251225085735-06273f72" -}}
+{{- hugo.Store.Set "version" "v0.4.0-alpha.3-20251225090302-dcc5e32c" -}}
{{- .Store.Set "this" dict -}}
{{- partial "init/detection-env.html" . -}}
diff --git a/layouts/_partials/plugin/post-chat-ai.html b/layouts/_partials/plugin/post-chat-ai.html
index 8a4dca82..2afe2406 100644
--- a/layouts/_partials/plugin/post-chat-ai.html
+++ b/layouts/_partials/plugin/post-chat-ai.html
@@ -106,7 +106,7 @@
{{- $uniqueFileId = .UniqueID -}}
{{- end -}}
{{- $targetPath := "" -}}
- {{- if $uniqueFileId | or .IsHome -}}
+ {{- if $uniqueFileId | and (not .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" -}}