Skip to content
Snippets Groups Projects
Commit 3990a926 authored by Olivia206's avatar Olivia206
Browse files

changed condition for credit and fixed cc

parent 69116e22
No related branches found
No related tags found
No related merge requests found
......@@ -2,8 +2,8 @@
figure
@include media-breakpoint-up(md)
display: inline-block
position: relative
padding-left: 2.813rem
position: relative
width: 25%
picture img
width: 100%
......
......@@ -2,9 +2,9 @@
<% content_for :header_right do %>
<% if @post.featured_image.attached? %>
<figure <% if !@post.featured_image_credit.blank? %>class="with-credit"<% end %>>
<figure <% if @post.featured_image_credit.present? %>class="with-credit"<% end %>>
<%= kamifusen_tag @post.featured_image, class: 'img-fluid', width: 300 %>
<% if !@post.featured_image_credit.blank? %>
<% if @post.featured_image_credit.present? %>
<figcaption tabindex="0">
<%= sanitize @post.featured_image_credit %>
</figcaption>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment