From 1a257bb2ba6fa90f5fcba600d086b34a4fde9a2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Fri, 25 Feb 2022 00:09:07 +0100 Subject: [PATCH] Move the Goat template to the correct place Updates #7765 --- .../_markup/render-codeblock-goat.html | 18 ------------------ .../_markup/render-codeblock-goat.html | 19 ++++++++++++++++++- 2 files changed, 18 insertions(+), 19 deletions(-) delete mode 100644 docs/layouts/_default/_markup/render-codeblock-goat.html 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 "" }} -
- {{ with diagrams.Goat .Code }} - - {{ .Body }} - - {{ end }} -
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 "" }} +
+ {{ with diagrams.Goat .Code }} + + {{ .Body }} + + {{ end }} +