diff --git a/layouts/_markup/render-codeblock-fixit.html b/layouts/_markup/render-codeblock-fixit.html new file mode 100644 index 00000000..cb2d3a16 --- /dev/null +++ b/layouts/_markup/render-codeblock-fixit.html @@ -0,0 +1,20 @@ +{{- /* +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 -}} diff --git a/layouts/_partials/init/index.html b/layouts/_partials/init/index.html index 00c99169..db2e55ac 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-20250823084643-0f68046a" -}} +{{- hugo.Store.Set "version" "v0.4.0-alpha-20250825095946-e9366b5a" -}} {{- .Store.Set "this" dict -}} {{- partial "init/detection-env.html" . -}} diff --git a/package.json b/package.json index fb8d50f3..222976ac 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "theme", "fixit" ], - "homepage": "https://github.com/hugo-fixit/FixIt#readme", + "homepage": "https://fixit.lruihao.cn", "bugs": { "url": "https://github.com/hugo-fixit/FixIt/issues" },