From 46a7031a3a233faf893af56495fe1cd9fadd1199 Mon Sep 17 00:00:00 2001
From: James Panther <4462786+jpanther@users.noreply.github.com>
Date: Sat, 21 Aug 2021 08:54:42 +1000
Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20Use=20.HasShortcode=20for?=
=?UTF-8?q?=20mermaid=20script?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
layouts/partials/footer.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 6fc51619..6233f60e 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -35,7 +35,7 @@
{{/* Include mermaid.js only on pages that use the shortcode */}}
-{{- if (in (string .Content) "class=\"mermaid\"") -}}
+{{- if .Page.HasShortcode "mermaid" -}}