diff options
-rw-r--r-- | generators/hugo/themes/tdro/layouts/_default/_markup/render-codeblock-goat.html | 4 | ||||
-rw-r--r-- | public/css/tdro.css | 9 |
2 files changed, 6 insertions, 7 deletions
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 index db8d8f2..d2d0753 100644 --- a/generators/hugo/themes/tdro/layouts/_default/_markup/render-codeblock-goat.html +++ b/generators/hugo/themes/tdro/layouts/_default/_markup/render-codeblock-goat.html @@ -1,9 +1,9 @@ {{ $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" + <svg xmlns="http://www.w3.org/2000/svg" {{ if or $width $height }} {{ with $width }}width="{{ . }}"{{ end }} diff --git a/public/css/tdro.css b/public/css/tdro.css index 2d3caba..3e334ef 100644 --- a/public/css/tdro.css +++ b/public/css/tdro.css @@ -1434,12 +1434,11 @@ textarea, font-family: Charter, Georgia, "Book Antiqua", serif; } -code, pre, -blockquote > p.serif, -.monospace { - -moz-osx-font-smoothing: auto; - -webkit-font-smoothing: auto; +code, +svg text, +.monospace, +blockquote > p.serif { font-family: "Fira Code", "Lucida Console", "Andale Mono", monospace; } |