1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-12-18 21:53:26 +00:00

Recover the missing image link identifier class

This commit is contained in:
Cotes Chung
2021-07-19 23:22:04 +08:00
parent ab8cef9174
commit c969eaa040
3 changed files with 5 additions and 3 deletions

View File

@@ -25,7 +25,7 @@ $(function() {
const title = nextTag.prop('tagName') === 'EM' ? nextTag.text() : '';
const src = $(this).attr('data-src'); // created by lozad.js
$(this).wrap(`<a href="${src}" title="${title}" class="popup img-link"></a>`);
$(this).wrap(`<a href="${src}" title="${title}" class="popup"></a>`);
}
);
@@ -42,4 +42,6 @@ $(function() {
/* markup the image links */
$(`${IMG_SCOPE} a`).has('img').addClass('img-link');
});