github.com/neohugo/neohugo@v0.123.8/tpl/tplimpl/embedded/templates/_default/_markup/render-codeblock-goat.html (about)

     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>