added hugo module: mermaid

This commit is contained in:
leoli 2024-05-14 17:32:31 +08:00
parent 8b8510b27b
commit 918f46c657
4 changed files with 11 additions and 0 deletions

View File

@ -94,3 +94,6 @@ path = "github.com/gethugothemes/hugo-modules/seo-tools/google-tag-manager"
# [[imports]]
# path = "github.com/gethugothemes/hugo-modules/seo-tools/counter-analytics"
[[imports]]
path = "github.com/hugomods/mermaid"

View File

@ -85,6 +85,10 @@ expire_days = 60
content = "This site uses cookies. By continuing to use this website, you agree to their use."
button = "I Accept"
# diagrams
[mermaid]
js_url = 'https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.esm.min.mjs'
######################## sidebar widgets #########################
[widgets]
sidebar = ["categories", "tags"]

View File

@ -26,4 +26,5 @@ require (
github.com/gethugothemes/hugo-modules/tab v0.0.0-20240504032439-79fc09d96848 // indirect
github.com/gethugothemes/hugo-modules/table-of-contents v0.0.0-20240504032439-79fc09d96848 // indirect
github.com/gethugothemes/hugo-modules/videos v0.0.0-20240504032439-79fc09d96848 // indirect
github.com/hugomods/mermaid v0.1.1 // indirect
)

View File

@ -56,3 +56,6 @@
<!-- Crisp Chat -->
{{/* {{ partialCached "crisp-chat.html" . }} */}}
<!-- Mermaid -->
{{ partial "mermaid/assets/js" . }}