coreysnyder04 / fluidbox-ghost-blog-plugin

21 stars 11 forks source link

Plugin Breaks Bookmark Card's Thumbnail Images #6

Open Torqu3Wr3nch opened 4 years ago

Torqu3Wr3nch commented 4 years ago

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.

viriatusX commented 2 years ago

With Ghost 5 continues fail. Look the image please:

Captura de Pantalla 2022-10-31 a las 13 10 08