mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
test: update JSON Viewer Test cases
This commit is contained in:
@@ -55,6 +55,10 @@ disabled copy:
|
||||
}
|
||||
```
|
||||
|
||||
```fixit
|
||||
🎉🥚 in development mode!
|
||||
```
|
||||
|
||||
## JSON Code
|
||||
|
||||
```json {enable=false}
|
||||
|
||||
@@ -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 -}}
|
||||
|
||||
@@ -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" . -}}
|
||||
|
||||
Reference in New Issue
Block a user