From fb3f9b2d8146d3bcf6bac1fcc0113c242b2c42ed Mon Sep 17 00:00:00 2001 From: Thedro Neely Date: Sat, 2 Apr 2022 22:47:03 -0400 Subject: generators/hugo/layouts/_default/_markup: Add GoAT Diagrams --- .../_default/_markup/render-codeblock-goat.html | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 generators/hugo/themes/tdro/layouts/_default/_markup/render-codeblock-goat.html diff --git a/generators/hugo/themes/tdro/layouts/_default/_markup/render-codeblock-goat.html b/generators/hugo/themes/tdro/layouts/_default/_markup/render-codeblock-goat.html new file mode 100644 index 0000000..db8d8f2 --- /dev/null +++ b/generators/hugo/themes/tdro/layouts/_default/_markup/render-codeblock-goat.html @@ -0,0 +1,18 @@ +{{ $width := .Attributes.width }} +{{ $height := .Attributes.height }} +{{ $caption := .Attributes.caption }} + + {{ with diagrams.Goat .Inner }} + + {{ .Inner }} + + {{ end }} +
{{ $caption }}
+
-- cgit v1.2.3