From a3e4edf464290b039a334afb4716eb3f5b334118 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Thu, 15 Jan 2026 06:18:14 +0000 Subject: [PATCH] feat: Conditionally load Mermaid.js This change modifies the post layout to only include the Mermaid.js script if the post content contains a Mermaid diagram. This is achieved by checking for the presence of the "language-mermaid" string in the post's content. This change improves page load performance by avoiding the unnecessary loading of the Mermaid.js library on pages that do not contain any diagrams. --- _layouts/post.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/_layouts/post.html b/_layouts/post.html index 74f182f..e11bed6 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -27,4 +27,6 @@