diff --git a/exampleSite/config/_default/module.toml b/exampleSite/config/_default/module.toml index 39ccf30..39cb6b4 100644 --- a/exampleSite/config/_default/module.toml +++ b/exampleSite/config/_default/module.toml @@ -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" diff --git a/exampleSite/config/_default/params.toml b/exampleSite/config/_default/params.toml index c7786cd..0992553 100755 --- a/exampleSite/config/_default/params.toml +++ b/exampleSite/config/_default/params.toml @@ -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"] diff --git a/exampleSite/content/english/pages/elements.md b/exampleSite/content/english/pages/elements.md index 269ddbb..0734549 100755 --- a/exampleSite/content/english/pages/elements.md +++ b/exampleSite/content/english/pages/elements.md @@ -192,6 +192,15 @@ s = "Python syntax highlighting" print s ``` +```mermaid +flowchart TD + A[Start] --> B{Is it?} + B -- Yes --> C[OK] + C --> D[Rethink] + D --> B + B -- No ----> E[End] +``` +