mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-14 20:33:59 +02:00
@@ -1,18 +0,0 @@
|
||||
{{ $width := .Attributes.width }}
|
||||
{{ $height := .Attributes.height }}
|
||||
{{ $class := .Attributes.class | default "" }}
|
||||
<div class="goat svg-container {{ $class }}">
|
||||
{{ with diagrams.Goat .Code }}
|
||||
<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 }}>
|
||||
{{ .Body }}
|
||||
</svg>
|
||||
{{ end }}
|
||||
</div>
|
@@ -1 +1,18 @@
|
||||
adf
|
||||
{{ $width := .Attributes.width }}
|
||||
{{ $height := .Attributes.height }}
|
||||
{{ $class := .Attributes.class | default "" }}
|
||||
<div class="goat svg-container {{ $class }}">
|
||||
{{ with diagrams.Goat .Code }}
|
||||
<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 }}>
|
||||
{{ .Body }}
|
||||
</svg>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user