<%= (controller.action_name.include? 'permalink') ? article.title : link_to_permalink(article,article.title) %>

Posted by <%= author_link(article) %> <%= js_distance_of_time_in_words_to_now article.published_at %>
<% if controller.action_name == 'show' or controller.action_name == 'index' %> <% if article.excerpt? %> <%= article.excerpt %> <% else %> <%= article.html(:body) %>

<%= link_to_permalink article,"Continue reading..." %>

<% end %> <% else %> <%= article.html(:body) %>
<%= article.html(:extended) %>
<% end %>

<%= content_tag(:span, category_links(article) << ' | ', :class => 'categories') unless article.categories.empty? %> <%= comments_link(article) << ' | ' if article.allow_comments? %> <% if controller.controller_name == 'articles' and controller.action_name == 'show' %> <%= content_tag(:span, tag_links(article) << ' | ', :class => 'tags') unless article.tags.empty? %> atom <% end %>