From 4a1adeb79b277db519d8a259598f3a32da4c7521 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Sat, 4 Feb 2023 16:17:19 +0100 Subject: [PATCH] browser: further IE11 fixes #452 --- layouts/partials/shortcodes/image.html | 4 ++-- static/js/theme.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/partials/shortcodes/image.html b/layouts/partials/shortcodes/image.html index c4c9466d07..1c28623420 100644 --- a/layouts/partials/shortcodes/image.html +++ b/layouts/partials/shortcodes/image.html @@ -35,12 +35,12 @@ {{- end }} {{- $id := partial "make-random-md5.hugo" }} {{- if $lightbox }} - + {{- end }} {{ $alt }} {{- if $lightbox }} -{{ $alt }} +{{ $alt }} {{- end }} \ No newline at end of file diff --git a/static/js/theme.js b/static/js/theme.js index 0a3cb7bf70..f451c14e21 100644 --- a/static/js/theme.js +++ b/static/js/theme.js @@ -821,7 +821,7 @@ function mark() { topbarLinks[i].classList.add( 'highlight' ); } - var bodyInnerLinks = document.querySelectorAll( '#body-inner a:not(.lightbox-link):not(.btn):not(.lightbox):not(a[rel="footnote"])' ); + var bodyInnerLinks = document.querySelectorAll( '#body-inner a:not(.lightbox-link):not(.btn):not(.lightbox)' ); for( var i = 0; i < bodyInnerLinks.length; i++ ){ bodyInnerLinks[i].classList.add( 'highlight' ); }