summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--layouts/shortcodes/img-center.html1
-rw-r--r--static/style.css4
2 files changed, 5 insertions, 0 deletions
diff --git a/layouts/shortcodes/img-center.html b/layouts/shortcodes/img-center.html
index fca4395..7d1d225 100644
--- a/layouts/shortcodes/img-center.html
+++ b/layouts/shortcodes/img-center.html
@@ -8,6 +8,7 @@
<center>
<figure>
<img
+ class="center"
alt="{{ $caption }}"
src="{{ $img1x.RelPermalink }}"
srcset="
diff --git a/static/style.css b/static/style.css
index 3406aaf..871c99e 100644
--- a/static/style.css
+++ b/static/style.css
@@ -193,6 +193,10 @@ img.float-right {
display: inline;
margin-left: 10px;
}
+img.center {
+ max-width: 100%;
+ height: auto;
+}
/* ----------- Articles adjustement navigation */
.next-link {