Convert docdock theme from submodule to native files and fix Hugo compatibility
This commit is contained in:
3
themes/docdock/layouts/shortcodes/mermaid.html
Normal file
3
themes/docdock/layouts/shortcodes/mermaid.html
Normal file
@@ -0,0 +1,3 @@
|
||||
<link href="{{"mermaid/mermaid.css" | relURL}}" type="text/css" rel="stylesheet"/>
|
||||
<script defer src="{{"mermaid/mermaid.js" | relURL}}">mermaid.initialize({startOnLoad:true});</script>
|
||||
<div class="mermaid" align="{{ if .Get "align" }}{{ .Get "align" }}{{ else }}center{{ end }}" >{{ safeHTML .Inner }}</div>
|
||||
Reference in New Issue
Block a user