From 587c51b59f62732f4e38dcc34c0aabfd59e8e8c3 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Sat, 24 Jun 2023 14:30:27 +0800 Subject: [PATCH] fix mermaid --- components/PrismMac.js | 2 +- themes/nobelium/LayoutSlug.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/PrismMac.js b/components/PrismMac.js index 2eac2a40..731060b6 100644 --- a/components/PrismMac.js +++ b/components/PrismMac.js @@ -70,7 +70,7 @@ const renderMermaid = async() => { } } }) - observer.observe(document.querySelector('#container'), { attributes: true, subtree: true }) + observer.observe(document.querySelector('#notion-article'), { attributes: true, subtree: true }) } function renderPrismMac() { diff --git a/themes/nobelium/LayoutSlug.js b/themes/nobelium/LayoutSlug.js index ea2cfb3a..4a98a641 100644 --- a/themes/nobelium/LayoutSlug.js +++ b/themes/nobelium/LayoutSlug.js @@ -19,13 +19,13 @@ export const LayoutSlug = props => { {lock && } {!lock &&
- {post && <> + <> - } +
}