Skip to content

The mermaid script is always inserted, is this correct? #1588

Closed Answered by deining
ayaco-zg asked this question in Q&A
Discussion options

You must be logged in to vote

A mermaid Script tag is always inserted into pages that do not use mermaid.

No. A correctly stated in the user guide, Mermaid script are only inserted for pages that actually contain mermaid code blocks.

I have specified [params.mermaid] enable=false in hugo.config, but it has no effect.

Please remove the whole [params.mermaid] section from your config file. Since you use hugo V0113.0, it is no needed. Afterwards you will see mermaid scripts only on pages that actually use mermaid code blocks.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ayaco-zg
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants