mirror of
https://github.com/thegeeklab/hugo-geekblog.git
synced 2024-11-22 21:20:43 +00:00
Robert Kaussow
d5f6cfb13e
BREAKING CHANGE: We have replaced `gulp` with `webpack` and `npm scripts` to build this theme. If you build it on your own or use build commands during the deployment, you may have to adjust your setup. BREAKING CHANGE: The `GeekblogIcons` font is using the icon name as Unicode now. As a consequence, you have to replace all references to Icons from this font if you have customized the theme.
10 lines
330 B
HTML
10 lines
330 B
HTML
{{ if not (.Page.Scratch.Get "mermaid") }}
|
|
<!-- Include mermaid only first time -->
|
|
<script defer src="{{ index (index .Site.Data.assets "mermaid.js") "src" | relURL }}"></script>
|
|
{{ .Page.Scratch.Set "mermaid" true }}
|
|
{{ end }}
|
|
|
|
<pre class="gblog-mermaid mermaid{{ with .Get "class" }} {{ . }}{{ end }}">
|
|
{{- .Inner -}}
|
|
</pre>
|