Files
FixIt/layouts/_markup/render-codeblock-fixit.html
T
2025-08-25 17:59:45 +08:00

21 lines
732 B
HTML

{{- /*
Hope this easter egg brings you surprise rather than shock :-)
Don't worry, the easter egg will only be triggered in development mode.
*/ -}}
{{- if not hugo.IsProduction -}}
{{- $FixIt := dict
"author" "Lruihao"
"description" "A clean, elegant but advanced blog theme for Hugo."
"homepage" "https://fixit.lruihao.cn"
"repository" "https://github.com/Lruihao/FixIt"
"version" (hugo.Store.Get "version")
| 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 -}}
{{- end -}}