<% if @article.present? %>
<% topics = [] %> <% if !@article.searchable.nil? %> <% newList = @article.searchable.split(",") topics = newList.reject { |c| c.empty? } %> <% end %> <% topics.each do |topic| %> <%= link_to "/#{@article.category.url}/topic/#{topic.parameterize}" do %>
<%= topic %>
<% end %> <% end %>

<%= @article.title %>


<%= link_to "/#{@article.category.url}" do %>
<%= @article.category.name %>
<% end %>

By <%= link_to "/internet-first/author/#{@article.author.name.parameterize}" do %> <%= @article.author.name %> <% end %> | <%= @article.created_at.strftime("%a, %d %b %Y ") %>

<%= image_tag (@article.banner.url) ,:class => "blog-img img-responsive"%>
<% if !@article.content.nil? && @article.content != "" %> <%=raw @article.content.force_encoding(Encoding::UTF_8) %> <% end %>
Comment
Subscribe to Email Updates
<% elsif @category.present? %>
<%= link_to "/#{@first_article.post_url}" do %> news image <% end %>
<% topics = [] %> <% if !@first_article.searchable.nil? %> <% newList = @first_article.searchable.split(",") topics = newList.reject { |c| c.empty? } %> <% end %> <% if !@first_article.searchable.nil? %>
<% topics.each do |topic| %> <%= link_to "/#{@first_article.category.url}/topic/#{topic.parameterize}" do %>
<%= topic %>
<% end %> <% end %>
<% end %>
<%= link_to "/#{@first_article.post_url}" do %>

<%= @first_article.title %>

<% end %>
<%= link_to "/#{@first_article.post_url}" do %>

<%= @first_article.summary %>

<% end %>

<%= link_to "/#{@first_article.category.url}" do %>
<%= @first_article.category.name %>
<% end %>

<%= @first_article.created_at.strftime(" %d %b %Y ") %>

<% @articles.each_with_index do |article,index| %>
<%= link_to "/#{article.post_url}" do %> <%= image_tag article.thumbnail .url, :class => "img-responsive" %> <% end %>
<% topics = [] %> <% if !article.searchable.nil? %> <% newList = article.searchable.split(",") topics = newList.reject { |c| c.empty? } %> <% end %> <% if !article.searchable.nil? %>
<% topics.each do |topic| %> <%= link_to "/#{article.category.url}/topic/#{topic.parameterize}" do %>
<%= topic %>
<% end %> <% end %>
<% end %> <%= link_to "/#{article.post_url}" do %>
<%= article.title %>
<% end %>

<%= link_to "/#{article.category.url}" do %>
<%= article.category.name %>
<% end %>

<%= article.created_at.strftime("%a, %d %b %Y ") %>

<% if index == 1 %>
Subscribe to Email Updates
<% end %> <% end %> <% if @articles.count < 2 %>
Subscribe to Email Updates
<% end %>
<% end %>