hugo

Fork of github.com/gohugoio/hugo with reverse pagination support

git clone git://git.shimmy1996.com/hugo.git

render-codeblock-goat.html (565B)

    1 {{ $width := .Attributes.width }}
    2 {{ $height := .Attributes.height }}
    3 {{ $class := .Attributes.class | default "" }}
    4 <div class="goat svg-container {{ $class }}">
    5   {{ with diagrams.Goat .Inner }}
    6     <svg
    7       xmlns="http://www.w3.org/2000/svg"
    8       font-family="Menlo,Lucida Console,monospace"
    9       {{ if or $width $height }}
   10         {{ with $width }}width="{{ . }}"{{ end }}
   11         {{ with $height }}height="{{ . }}"{{ end }}
   12       {{ else }}
   13         viewBox="0 0 {{ .Width }} {{ .Height }}"
   14       {{ end }}>
   15       {{ .Inner }}
   16     </svg>
   17   {{ end }}
   18 </div>