fix(layouts): fix toggle code block YAML conversion for identical values

- Add explicit format detection fallback when auto-detection fails
- Strip YAML anchors/aliases created by Go yaml.v3 for identical values
This commit is contained in:
Cell
2026-07-18 01:31:56 +08:00
parent 5811b21f02
commit 3326ea4515
2 changed files with 37 additions and 15 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
{{- hugo.Store.Set "version" "v1.0.0-mroxqxk7" -}}
{{- hugo.Store.Set "version" "v1.0.0-mrp7tfov" -}}
{{- .Store.Set "this" dict -}}
{{- partial "init/detection-env.html" . -}}