put all the shortcode code in one place
This commit is contained in:
parent
9f8ae0bf51
commit
f6a6b2fcb8
2 changed files with 7 additions and 8 deletions
|
@ -112,11 +112,4 @@
|
|||
<!-- End Piwik Code -->
|
||||
{{ end }}
|
||||
|
||||
<!-- For Mermaid Diagrams -->
|
||||
<link href="{{"css/mermaid.css" | relURL}}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}" type="text/css" rel="stylesheet" />
|
||||
<script src="{{"js/mermaid.js" | relURL}}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}"></script>
|
||||
<script>
|
||||
mermaid.initialize({ startOnLoad: true });
|
||||
</script>
|
||||
|
||||
{{- partial "footer_custom.html" . }}
|
||||
|
|
|
@ -1 +1,7 @@
|
|||
<div class="mermaid" align="{{ if .Get "align" }}{{ .Get "align" }}{{ else }}center{{ end }}">{{ safeHTML .Inner }}</div>
|
||||
<link href="{{"css/mermaid.css" | relURL}}" type="text/css" rel="stylesheet"/>
|
||||
<script defer src="{{"js/mermaid.js" | relURL}}">
|
||||
mermaid.initialize({startOnLoad:true});
|
||||
</script>
|
||||
<div class="mermaid" align="{{ if .Get "align" }}{{ .Get "align" }}{{ else }}center{{ end }}" >
|
||||
{{ safeHTML .Inner }}
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue