diff options
author | jaseg <git@jaseg.de> | 2023-03-19 00:53:31 +0100 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2023-03-19 00:53:31 +0100 |
commit | 92e3b5f49f6f5336530988e7839ab3ed283b86e4 (patch) | |
tree | 23abd87cb15055b7f4cbb5c0e4f2d1518d3ac6cc /themes/blog.jaseg.de/layouts/partials/foot_custom.html | |
parent | 072b2d38e254cfa662d4d9e994e624f612d1766e (diff) | |
download | blog-92e3b5f49f6f5336530988e7839ab3ed283b86e4.tar.gz blog-92e3b5f49f6f5336530988e7839ab3ed283b86e4.tar.bz2 blog-92e3b5f49f6f5336530988e7839ab3ed283b86e4.zip |
Big site update
Diffstat (limited to 'themes/blog.jaseg.de/layouts/partials/foot_custom.html')
-rw-r--r-- | themes/blog.jaseg.de/layouts/partials/foot_custom.html | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/themes/blog.jaseg.de/layouts/partials/foot_custom.html b/themes/blog.jaseg.de/layouts/partials/foot_custom.html deleted file mode 100644 index 3d9fb1d..0000000 --- a/themes/blog.jaseg.de/layouts/partials/foot_custom.html +++ /dev/null @@ -1,25 +0,0 @@ -<!-- Automagically centers images. Original Author Yihui Xie: https://yihui.name --> -<script> -(function() { - function center_el(tagName) { - var tags = document.getElementsByTagName(tagName), i, tag; - for (i = 0; i < tags.length; i++) { - tag = tags[i]; - var parent = tag.parentElement; - // center an image if it is the only element of its parent - if (parent.childNodes.length === 1) { - // if there is a link on image, check grandparent - if (parent.nodeName === 'A') { - parent = parent.parentElement; - if (parent.childNodes.length != 1) continue; - } - if (parent.nodeName === 'P') parent.style.textAlign = 'center'; - } - } - } - var tagNames = ['img', 'embed', 'object']; - for (var i = 0; i < tagNames.length; i++) { - center_el(tagNames[i]); - } -})(); -</script> |