From fcbb2d73dba45e69e2b85118e1ed5c459a6ffd4c Mon Sep 17 00:00:00 2001 From: Thedro Neely Date: Fri, 8 Apr 2022 05:30:55 -0400 Subject: generators/hugo/_markup/render-codeblock-goat: Set default captions Remove proprietary font-family inline. --- .../tdro/layouts/_default/_markup/render-codeblock-goat.html | 4 ++-- 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 }} {{ with diagrams.Goat .Inner }} - 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; } -- cgit v1.2.3