- if @entry.is_a?(Post) && referrers.present?
  %section.referrers
    %h3 この記事を参照している記事
    %ul
      - referrers.each do |referrer|
        %li.item{ title: referrer.title, link: referrer.link, type: 'referrer' }
          .title
            %span.link= link_to referrer.title, referrer.link
            %span.created_at= l(referrer.created_at.to_date, format: :long)
          .description
            .image= link_to image_tag("https://portalshit.net/imageproxy/200x200,sc/#{referrer.cover_image}"), referrer.link
            .body= referrer.long_description
- if @entry.is_a?(Post) && @entry.similar_entries.present?
  %section.similar
    %h3 この記事に似ている記事
    %ul
      - @entry.similar_entries.includes(:category).order(:'similarities.score' => :desc).limit(6).each do |similar|
        %li.item{ title: similar.title, link: similar.link, type: 'similar' }
          .title
            %span.link= link_to similar.title, similar.link
            %span.created_at= l(similar.created_at.to_date, format: :long)
          .description
            .image= link_to image_tag("https://portalshit.net/imageproxy/200x200,sc/#{similar.cover_image}"), similar.link
            .body= similar.long_description

- if @entry.is_a?(Post) && referrers.present?
  %section.referrers
    %h3 この記事を参照している記事
    %ul
      - referrers.each do |referrer|
        %li.item{ title: referrer.title, link: referrer.link, type: 'referrer' }
          .title
            %span.link= link_to referrer.title, referrer.link
            %span.created_at= l(referrer.created_at.to_date, format: :long)
          .description
            .image= link_to image_tag("https://portalshit.net/imageproxy/200x200/#{referrer.cover_image}"), referrer.link
            .body= referrer.long_description
- if @entry.is_a?(Post) && @entry.similar_entries.present?
  %section.similar
    %h3 この記事に似ている記事
    %ul
      - @entry.similar_entries.includes(:category).order(:'similarities.score' => :desc).limit(6).each do |similar|
        %li.item{ title: similar.title, link: similar.link, type: 'similar' }
          .title
            %span.link= link_to similar.title, similar.link
            %span.created_at= l(similar.created_at.to_date, format: :long)
          .description
            .image= link_to image_tag("https://portalshit.net/imageproxy/200x200/#{similar.cover_image}"), similar.link
            .body= similar.long_description

Stop using smart clip for thunbnail
Stop using smart clip for thunbnail
