diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-02-25 00:09:07 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-02-25 00:09:07 +0100 |
commit | 1a257bb2ba6fa90f5fcba600d086b34a4fde9a2c (patch) | |
tree | 990cb5bf34331c2b9b6a191d3db02d14c2784640 | |
parent | 97514f17d658fd1b9a3afe0c1786307233190af7 (diff) |
Move the Goat template to the correct place
Updates #7765
-rw-r--r-- | docs/layouts/_default/_markup/render-codeblock-goat.html | 18 | ||||
-rw-r--r-- | tpl/tplimpl/embedded/templates/_default/_markup/render-codeblock-goat.html | 19 |
2 files changed, 18 insertions, 19 deletions
diff --git a/docs/layouts/_default/_markup/render-codeblock-goat.html b/docs/layouts/_default/_markup/render-codeblock-goat.html deleted file mode 100644 index b1e57e94a..000000000 --- a/docs/layouts/_default/_markup/render-codeblock-goat.html +++ /dev/null @@ -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> diff --git a/tpl/tplimpl/embedded/templates/_default/_markup/render-codeblock-goat.html b/tpl/tplimpl/embedded/templates/_default/_markup/render-codeblock-goat.html index 7c2b99f3f..b1e57e94a 100644 --- a/tpl/tplimpl/embedded/templates/_default/_markup/render-codeblock-goat.html +++ b/tpl/tplimpl/embedded/templates/_default/_markup/render-codeblock-goat.html @@ -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> |