aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThedro Neely <thedroneely@gmail.com>2022-04-08 05:30:55 -0400
committerThedro Neely <thedroneely@gmail.com>2022-04-08 05:30:55 -0400
commitfcbb2d73dba45e69e2b85118e1ed5c459a6ffd4c (patch)
treee838bebe2d57186021e19afea39527b7969414f2
parent1174512e336a8bd17bef80a4fb968125dc34c93c (diff)
downloadthedroneely.com-fcbb2d73dba45e69e2b85118e1ed5c459a6ffd4c.tar.gz
thedroneely.com-fcbb2d73dba45e69e2b85118e1ed5c459a6ffd4c.tar.bz2
thedroneely.com-fcbb2d73dba45e69e2b85118e1ed5c459a6ffd4c.zip
generators/hugo/_markup/render-codeblock-goat: Set default captions
Remove proprietary font-family inline.
-rw-r--r--generators/hugo/themes/tdro/layouts/_default/_markup/render-codeblock-goat.html4
-rw-r--r--public/css/tdro.css9
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;
}