mirror of
https://github.com/ItsDrike/itsdrike.com.git
synced 2024-11-13 23:37:16 +00:00
10 lines
343 B
HTML
10 lines
343 B
HTML
{{ $mermaidData := dict "theme" "default" }}
|
|
{{ $data := dict "code" .Inner "mermaid" $mermaidData }}
|
|
|
|
<figure class="mermaid">
|
|
<img src="https://mermaid.ink/img/{{ $data | jsonify | base64Encode }}" referrerpolicy="no-referrer">
|
|
<figcaption class="text-center">
|
|
<small>{{ .Get "caption" }}</small>
|
|
</figcaption>
|
|
</figure>
|