<% if blogpost %> <% author = blogpost.author %> <% category = blogpost.category %>
<% if show_category_label %> < <%= category.name %> /> <% end %> <%= render partial: 'blog/blogpost/tag_labels', locals: { blogpost: blogpost } %>

<%= blogpost.title %>

<%= blogpost.description.truncate(150) %>

<% if author && author.name && show_author %>
[<%= t('read_more') %>]
<% if author.image_url %> <%= image_tag author.url, class: "image-tag-author" %> <% end %>
<%= link_to author.name, blog_author_path(author.short_name) %>

<%= Date.parse(blogpost.published_at).strftime('%b %d, %Y') %>

<% else %>
[<%= t('read_more') %>]

<%= Date.parse(blogpost.published_at).strftime('%b %d, %Y') %>

<% end # if author && author.name && show_author %>
<% end %>