summaryrefslogtreecommitdiff
path: root/themes/blog.jaseg.de/layouts/partials/foot_custom.html
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2022-02-23 22:34:14 +0100
committerjaseg <git@jaseg.de>2022-02-23 22:34:14 +0100
commitc21e6f3076149fb8c9c9f6c154ea907a32af9494 (patch)
tree1e7f84a57415a203fcc3fc6b48535b1d8af6cb72 /themes/blog.jaseg.de/layouts/partials/foot_custom.html
parent072b2d38e254cfa662d4d9e994e624f612d1766e (diff)
parent4c52f1b500c0edb9a2947f01219080e26ded209f (diff)
downloadblog-c21e6f3076149fb8c9c9f6c154ea907a32af9494.tar.gz
blog-c21e6f3076149fb8c9c9f6c154ea907a32af9494.tar.bz2
blog-c21e6f3076149fb8c9c9f6c154ea907a32af9494.zip
deploy.py auto-commit
Diffstat (limited to 'themes/blog.jaseg.de/layouts/partials/foot_custom.html')
-rw-r--r--themes/blog.jaseg.de/layouts/partials/foot_custom.html25
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>