summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--layouts/blog/single.html2
-rw-r--r--static/css/blog.css15
2 files changed, 15 insertions, 2 deletions
diff --git a/layouts/blog/single.html b/layouts/blog/single.html
index f6e3980..7fd8efe 100644
--- a/layouts/blog/single.html
+++ b/layouts/blog/single.html
@@ -11,7 +11,7 @@
{{ .Date.Format "2006" }}
</time>
- <span id="reading-time">
+ <span>
Approx
{{ .ReadingTime }}
minute{{ if (ne .ReadingTime 1) }}s{{ end }}
diff --git a/static/css/blog.css b/static/css/blog.css
index eb2e9a0..eff7957 100644
--- a/static/css/blog.css
+++ b/static/css/blog.css
@@ -72,6 +72,19 @@
justify-content: space-evenly;
}
-#blog-post header hr {
+#blog-post hr {
border: 1px solid var(--blog-h1-fg);
}
+
+article#blog-post img {
+ display: block;
+ margin: 1rem auto;
+ max-width: 90%;
+ max-height: 30rem;
+ border: 1px solid var(--blog-h1-fg);
+}
+
+/* linked images have different colored borders */
+article#blog-post a img {
+ border: 1px solid var(--link-fg);
+}