From 88c34fdcc13bcc68c52afa325fb036f81345fbb5 Mon Sep 17 00:00:00 2001 From: tdro Date: Mon, 9 May 2022 19:59:41 -0400 Subject: themes/default/layouts/shortcodes: Add span footer for block quote --- assets/css/default.css | 15 +++++++++++++++ content/canory/messages/diagrams.md | 5 +++-- themes/default/layouts/shortcodes/footer.html | 7 +++++++ 3 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 themes/default/layouts/shortcodes/footer.html diff --git a/assets/css/default.css b/assets/css/default.css index 096a2ec..04c9016 100644 --- a/assets/css/default.css +++ b/assets/css/default.css @@ -1473,6 +1473,21 @@ blockquote { padding-left: 2rem; } +blockquote p { + font-style: italic; + font-family: Charter, Georgia, "Book Antiqua", serif; + font-size: 125%; +} + +blockquote p span { + display: block; + text-align: right; + color: var(--foreground); + font-style: normal; + font-size: 80%; + margin-top: 0.75rem; +} + video { border-radius: 0.75rem; } diff --git a/content/canory/messages/diagrams.md b/content/canory/messages/diagrams.md index f32b056..cad4aa9 100644 --- a/content/canory/messages/diagrams.md +++ b/content/canory/messages/diagrams.md @@ -1,7 +1,7 @@ +++ date = "2022-03-25T04:45:51+00:00" lastmod = "2022-03-29T22:55:17+00:00" -tags = [ "docs", "diagrams" ] +tags = [ "docs", "diagrams", "emojis" ] author = "canory" +++ @@ -15,7 +15,8 @@ probably like them :sweat_smile:. I'm over the character limit but look mommy > My original implementation was certainly buggy and not on par with markdeep. I'm > grateful for the folks who've helped smooth out the rough edges, and I've > updated this project to reflect the good changes made in the Hugo fork, -> including a long-overdue go.mod. +> including a long--overdue go.mod. +{{< footer />}} ```goat . . . .--- 1 diff --git a/themes/default/layouts/shortcodes/footer.html b/themes/default/layouts/shortcodes/footer.html new file mode 100644 index 0000000..579913d --- /dev/null +++ b/themes/default/layouts/shortcodes/footer.html @@ -0,0 +1,7 @@ +{{- $text := default "Block Quote" (.Get "text" | default (.Get 0)) -}} + +{{- if gt (len .Inner) 1 -}} + {{ $text = .Inner }} +{{- end -}} + +{{ $text | markdownify }} -- cgit v1.2.3