Move the Goat template to the correct place
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 24 Feb 2022 23:09:07 +0000 (00:09 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 24 Feb 2022 23:09:07 +0000 (00:09 +0100)
Updates #7765

docs/layouts/_default/_markup/render-codeblock-goat.html [deleted file]
tpl/tplimpl/embedded/templates/_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 (file)
index b1e57e9..0000000
+++ /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>
index 7c2b99f3f2152b45da300569bf9a2151071047a4..b1e57e94a7b30e9712fa3b4a6f21e697ffa7bf9b 100644 (file)
@@ -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>