Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/chipzoller/hugo-clarity.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorweru <fromweru@gmail.com>2022-05-14 23:13:16 +0300
committerweru <fromweru@gmail.com>2022-05-14 23:13:16 +0300
commit5537c378e710d0c985a7dcadc79a02d5692a7f75 (patch)
tree74c76480de74e6dee44ea4c9a18984126831cc0c
parentede406b64d25d3ba36b0e33411a7a53a95129c67 (diff)
default image position to zerofix-image-position-in-caption-bug
Signed-off-by: weru <fromweru@gmail.com>
-rw-r--r--assets/js/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/assets/js/index.js b/assets/js/index.js
index 007daf2..6c33ac8 100644
--- a/assets/js/index.js
+++ b/assets/js/index.js
@@ -226,7 +226,7 @@ function fileClosure(){
}
function populateAlt(images) {
- let imagePosition = containsClass(images[0], featuredImageClass) ? -1 : 0;
+ let imagePosition = 0;
images.forEach((image) => {
let alt = image.alt;