fluidbox-ghost-blog-plugin icon indicating copy to clipboard operation
fluidbox-ghost-blog-plugin copied to clipboard

Plugin Breaks Bookmark Card's Thumbnail Images

Open Torqu3Wr3nch opened this issue 5 years ago • 1 comments

The plugin is picking up on the thumbnail images associated with Ghost's bookmark cards and forcibly closing the thumbnail (thus rendering a blank image).

Solution:

I added a simple if statement to make sure that the image does not have a parent with the "kg-bookmark-thumbnail" class.

    $(targetImages.join(',')).each(function (index, el) {
      if(!$(this).parent().hasClass("kg-bookmark-thumbnail")){
        $("<a href='" + $(this).attr('src') + "' class='zoom'></a>").insertAfter($(this));
        $(this).appendTo($(this).next("a"));
      }
    });

I have tested this on my blog and everything is working fine now: https://engineerworkshop.com/2020/01/10/how-to-add-cifs-storage-to-proxmox/

Submitting pull request.

Torqu3Wr3nch avatar Jan 11 '20 03:01 Torqu3Wr3nch

With Ghost 5 continues fail. Look the image please: Captura de Pantalla 2022-10-31 a las 13 10 08

viriatusX avatar Oct 31 '22 12:10 viriatusX