diff --git a/mkdocs.yaml b/mkdocs.yaml index 3c7011fd..c05f3df3 100644 --- a/mkdocs.yaml +++ b/mkdocs.yaml @@ -152,11 +152,6 @@ markdown_extensions: # 展開用:??? info "title" - pymdownx.details - pymdownx.highlight -- pymdownx.superfences: - custom_fences: - - name: mermaid - class: mermaid - format: !!python/name:mermaid2.fence_mermaid_custom # MathJax - pymdownx.arithmatex: generic: true @@ -206,9 +201,8 @@ plugins: - essay/index.md - mermaid2: arguments: - securityLevel: loose - theme: | - ^(JSON.parse(__md_get("__palette").index == 1)) ? 'dark' : 'light' + securityLevel: antiscript + theme: neutral # 用來注入最新的修改 - blogging: # https://github.com/liang2kl/mkdocs-blogging-plugin diff --git a/overrides/main.html b/overrides/main.html index f6abb296..a792e09c 100644 --- a/overrides/main.html +++ b/overrides/main.html @@ -1,60 +1,61 @@ {% extends "base.html" %} {% block site_meta %} - {{ super() }} - - {% if page.meta and page.meta.image %} - - {% endif %} - {% if page.meta and page.meta.description %} - - {% endif %} - {% if page.meta and page.meta.title %} - - {% elif page.title and not page.is_homepage %} - - {% else %} - - {% endif %} +{{ super() }} + +{% if page.meta and page.meta.image %} + +{% endif %} +{% if page.meta and page.meta.description %} + +{% endif %} +{% if page.meta and page.meta.title %} + +{% elif page.title and not page.is_homepage %} + +{% else %} + +{% endif %} {% endblock %} {% block styles %} - {{ super() }} - + .medium-zoom-image--opened { + z-index: 10; + } + {% endblock %} diff --git a/src/stylesheets/custom.css b/src/stylesheets/custom.css index aea947d5..ec904b11 100644 --- a/src/stylesheets/custom.css +++ b/src/stylesheets/custom.css @@ -10,8 +10,3 @@ --md-typeset-color: #fafafa; } } - -/* mermaid styling */ -.mermaid .flowchartTitleText { - fill: var(--md-typeset-color) !important; -}