mirror of
https://github.com/tomfran/typo.git
synced 2025-04-25 21:19:55 +03:00
make mermaid themes configurable
This commit is contained in:
parent
31ba2ee311
commit
f5f04dba37
3 changed files with 43 additions and 5 deletions
|
@ -89,4 +89,10 @@ You can easily generate favicons using [this website](https://realfavicongenerat
|
|||
|
||||
## Mermaid Diagrams
|
||||
|
||||
Mermaid diagrams are supported by theme, just follow [this reference](https://gohugo.io/content-management/diagrams/#mermaid-diagrams) to use them.
|
||||
Mermaid diagrams are supported, just follow [this reference](https://gohugo.io/content-management/diagrams/#mermaid-diagrams) to use them. You can set Mermaid's light- and dark themes in your config; they switch with your blog's light/dark state. These are the defaults:
|
||||
|
||||
```toml
|
||||
[params]
|
||||
mermaidTheme = "default"
|
||||
mermaidDarkTheme = "dark"
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue