<% category = @blogpost.category %> <% author = @blogpost.author %>
<% reading = reading_time_without_code_tags(@blogpost.content) %> <% if reading.present? %>

<%= reading %> 

<% end %>
<%= link_to blog_author_path(author.short_name), class: "Vlt-blue-darker" do %>

<%= author.name %>

<% end %>

<%= author.title %>

<%= author.bio.truncate(200) if author.bio.present? %>

<%= link_to blog_author_path(author.short_name), class: "Vlt-blue-darker" do %> [<%= t('read_more') %>] <% end %>
<%= image_tag @blogpost.header_img_url, class: "border-radius-top" %>
< <%= category.name %> />

<%= @blogpost.title %>

<% if @blogpost.tags.count > 0 %>
<% @blogpost.tags.each do |tag| %> <% next if tag.empty? %> #<%= tag == "Objective_C" ? "Objective-C" : tag.downcase %> <% end %>
<% end %> <% if @blogpost.updated_at.present? %>

Last updated on <%= @blogpost.updated_at.strftime('%b %d, %Y') %>

<% end %>
<%= raw @blogpost.content %>