mirror of
https://github.com/theNewDynamic/gohugo-theme-ananke.git
synced 2025-06-08 17:22:46 +00:00
parent
6e465653ec
commit
001e04ea98
18
layouts/_default/_markup/render-codeblock-goat.html
Normal file
18
layouts/_default/_markup/render-codeblock-goat.html
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
{{ $width := .Attributes.width }}
|
||||||
|
{{ $height := .Attributes.height }}
|
||||||
|
{{ $class := .Attributes.class | default "f5" }}
|
||||||
|
<div class="goat svg-container {{ $class }}">
|
||||||
|
{{ with diagrams.Goat .Inner }}
|
||||||
|
<svg
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
font-family="Menlo,Lucida Console,monospace"
|
||||||
|
{{ if or $width $height }}
|
||||||
|
{{ with $width }}width="{{ . }}"{{ end }}
|
||||||
|
{{ with $height }}height="{{ . }}"{{ end }}
|
||||||
|
{{ else }}
|
||||||
|
viewBox="0 0 {{ .Width }} {{ .Height }}"
|
||||||
|
{{ end }}>
|
||||||
|
{{ .Inner }}
|
||||||
|
</svg>
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
Loading…
x
Reference in New Issue
Block a user