diff --git a/static/js/hugo-learn.js b/static/js/hugo-learn.js index b20313a2cc..213e31e993 100644 --- a/static/js/hugo-learn.js +++ b/static/js/hugo-learn.js @@ -21,7 +21,9 @@ var images = $("div#body-inner img").not(".inline"); // Wrap image inside a featherlight (to get a full size view in a popup) images.wrap(function(){ var image =$(this); - return ""; + if (!image.parent("a").length) { + return ""; + } }); // Change styles, depending on parameters set to the image