aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-05-09 19:59:41 -0400
committertdro <tdro@noreply.example.com>2022-05-09 19:59:41 -0400
commit88c34fdcc13bcc68c52afa325fb036f81345fbb5 (patch)
treee25f35421c804ed91f876354c60704d9bbb7a1c4
parent2e857640a00fc55ac3db0537158e982c39d2a92f (diff)
downloadcanory-88c34fdcc13bcc68c52afa325fb036f81345fbb5.tar.gz
canory-88c34fdcc13bcc68c52afa325fb036f81345fbb5.tar.bz2
canory-88c34fdcc13bcc68c52afa325fb036f81345fbb5.zip
themes/default/layouts/shortcodes: Add span footer for block quote
-rw-r--r--assets/css/default.css15
-rw-r--r--content/canory/messages/diagrams.md5
-rw-r--r--themes/default/layouts/shortcodes/footer.html7
3 files changed, 25 insertions, 2 deletions
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 -}}
+
+<span>{{ $text | markdownify }}</span>