aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortdro <tdro@users.noreply.github.com>2022-04-05 02:53:00 -0400
committertdro <tdro@users.noreply.github.com>2022-04-05 02:53:00 -0400
commit676bc472cb138419877f610a975fa6d835fe0b3e (patch)
treeeb01324026ceff4e421efbf3836fab010664015d
parent6740a622d5c4afd0b007c8ff09511ba129f53e18 (diff)
downloadhugo-theme-opulene-676bc472cb138419877f610a975fa6d835fe0b3e.tar.gz
hugo-theme-opulene-676bc472cb138419877f610a975fa6d835fe0b3e.tar.bz2
hugo-theme-opulene-676bc472cb138419877f610a975fa6d835fe0b3e.zip
layouts/_default/_markup/render-codeblock-goat: Set default caption
-rw-r--r--themes/opulene/layouts/_default/_markup/render-codeblock-goat.html1
1 files changed, 1 insertions, 0 deletions
diff --git a/themes/opulene/layouts/_default/_markup/render-codeblock-goat.html b/themes/opulene/layouts/_default/_markup/render-codeblock-goat.html
index e48a3b2..7176c2b 100644
--- a/themes/opulene/layouts/_default/_markup/render-codeblock-goat.html
+++ b/themes/opulene/layouts/_default/_markup/render-codeblock-goat.html
@@ -1,6 +1,7 @@
{{ $width := .Attributes.width }}
{{ $height := .Attributes.height }}
{{ $caption := .Attributes.caption }}
+{{ $caption := default "GoAT Diagram" .Attributes.caption }}
<diagram-container>
{{ with diagrams.Goat .Inner }}
<svg font-family="'Fira Code', 'Lucida Console', 'Andale Mono', monospace"