mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
21 lines
732 B
HTML
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 -}}
|