mirror of
https://github.com/theNewDynamic/gohugo-theme-ananke.git
synced 2025-06-08 17:22:46 +00:00
added Mermaid support
This commit is contained in:
parent
24032fda04
commit
a63d640af9
@ -14,6 +14,11 @@
|
||||
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
|
||||
{{ end }}
|
||||
|
||||
{{if (.Params.mermaid)}}
|
||||
<!-- MermaidJS support -->
|
||||
<script async src="https://unpkg.com/mermaid/dist/mermaid.min.js"></script>
|
||||
{{end}}
|
||||
|
||||
{{ $stylesheet := .Site.Data.webpack_assets.app }}
|
||||
{{ with $stylesheet.css }}
|
||||
<link href="{{ relURL (printf "%s%s" "dist/" .) }}" rel="stylesheet">
|
||||
|
3
layouts/shortcodes/mermaid.html
Normal file
3
layouts/shortcodes/mermaid.html
Normal file
@ -0,0 +1,3 @@
|
||||
<div class="mermaid">
|
||||
{{.Inner}}
|
||||
</div>
|
Loading…
x
Reference in New Issue
Block a user