Initial import of Hugo site to Forgejo
This commit is contained in:
commit
cb1ba0317f
1259 changed files with 236349 additions and 0 deletions
8
layouts/shortcodes/mermaid.html
Normal file
8
layouts/shortcodes/mermaid.html
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{{ if not (.Page.Store.Get "mermaidLoaded") }}
|
||||
<script src="{{ "js/mermaid.min.js" | relURL }}" defer></script>
|
||||
<script src="{{ "js/init-mermaid-umd.js" | relURL }}" defer></script>
|
||||
{{ .Page.Store.Set "mermaidLoaded" true }}
|
||||
{{ end }}
|
||||
|
||||
<div class="mermaid">{{- .Inner -}}</div>
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue