From 0d74fe425cb5856a1760dfd290d6810d002155d1 Mon Sep 17 00:00:00 2001 From: starcells Date: Sat, 21 Feb 2026 10:07:05 +0800 Subject: [PATCH] Added mermaid support. --- layouts/_markup/render-codeblock-mermaid.html | 1 + layouts/partials/extend_head.html | 23 ++++++ public/404.html | 53 +++++++----- public/categories/index.html | 55 ++++++++----- public/categories/index.xml | 4 +- public/index.html | 80 ++++++++++-------- public/index.xml | 17 ++-- public/page/1/index.html | 6 +- public/posts/index.html | 82 +++++++++++-------- public/posts/index.xml | 17 ++-- public/posts/page/1/index.html | 6 +- public/sitemap.xml | 21 +++-- public/tags/index.html | 55 ++++++++----- public/tags/index.xml | 4 +- 14 files changed, 268 insertions(+), 156 deletions(-) create mode 100644 layouts/_markup/render-codeblock-mermaid.html diff --git a/layouts/_markup/render-codeblock-mermaid.html b/layouts/_markup/render-codeblock-mermaid.html new file mode 100644 index 0000000..13de7fa --- /dev/null +++ b/layouts/_markup/render-codeblock-mermaid.html @@ -0,0 +1 @@ +
{{- .Inner | safeHTML -}}
diff --git a/layouts/partials/extend_head.html b/layouts/partials/extend_head.html index 0296183..ab0c309 100644 --- a/layouts/partials/extend_head.html +++ b/layouts/partials/extend_head.html @@ -1,3 +1,26 @@ {{ if or .Params.math .Site.Params.math }} {{ partial "math.html" . }} {{ end }} + + diff --git a/public/404.html b/public/404.html index a90820c..06a5220 100644 --- a/public/404.html +++ b/public/404.html @@ -1,24 +1,24 @@ - + - + 404 Page not found | Starcells.ltd - + - - - - - + + + + + - +