diff --git a/apps/test/content/posts/json-viewer-test.md b/apps/test/content/posts/json-viewer-test.md index f4ca0e29..c43776d9 100644 --- a/apps/test/content/posts/json-viewer-test.md +++ b/apps/test/content/posts/json-viewer-test.md @@ -55,6 +55,10 @@ disabled copy: } ``` +```fixit +🎉🥚 in development mode! +``` + ## JSON Code ```json {enable=false} diff --git a/layouts/_markup/render-codeblock-fixit.html b/layouts/_markup/render-codeblock-fixit.html index cb2d3a16..842d5db8 100644 --- a/layouts/_markup/render-codeblock-fixit.html +++ b/layouts/_markup/render-codeblock-fixit.html @@ -13,8 +13,5 @@ Don't worry, the easter egg will only be triggered in development mode. | dict "FixIt" | jsonify (dict "prefix" " " "indent" " ") -}} - {{- printf "```json {title=\"🧐 Oh, you found a FixIt easter egg 🥚~\"}\n%s\n```" $FixIt | $.Page.RenderString -}} -{{- else -}} - {{- $result := transform.HighlightCodeBlock . -}} - {{- $result.Wrapped -}} + {{- printf "```json {title=\"🧐 Oh, you found a FixIt easter egg 🥚~\", expandDepth=2}\n%s\n```" $FixIt | $.Page.RenderString -}} {{- end -}} diff --git a/layouts/_partials/init/index.html b/layouts/_partials/init/index.html index 068adc3b..950e11c7 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.2-20251014072524-fa94e698" -}} +{{- hugo.Store.Set "version" "v0.4.0-alpha.2-20251014082535-5c74d431" -}} {{- .Store.Set "this" dict -}} {{- partial "init/detection-env.html" . -}}