<% category = @blogpost.category %> <% author = @blogpost.author %> <% content_for :canonical do %> <%= @blogpost.canonical %> <% end %> <% content_for :header_img_url do %> <%= @blogpost.header_img_url.strip %> <% end %> <% content_for :title do %> <%= @blogpost.title.strip %> <% end %> <% content_for :description do %> <%= @blogpost.description.truncate(150).strip %> <% end %>
<% 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 %> <% updated = @blogpost.updated_at.present? ? @blogpost.updated_at : @blogpost.published_at %>

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

<%= raw @blogpost.content %>

Start Building

Start developing in minutes with free credit on us. No credit card required!

<%= link_to @blog_button_path, class: "Vlt-btn-blog-sm" do %>  Sign Up <% end %>