Skip to content

Commit

Permalink
Adds a "continue reading" link to articles using the excerpt to get t…
Browse files Browse the repository at this point in the history
…he same behavior as articles using the "more" tag.

This was a very sensible request from issue #174.
  • Loading branch information
Frédéric de Villamil committed Jul 12, 2013
1 parent 5419e77 commit b7839d2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/views/articles/_article_excerpt.html.erb
@@ -1,5 +1,8 @@
<% if article.excerpt? %>
<%= article.excerpt %>
<div class="extended">
<p><%= link_to_permalink article, _("Continue reading") + "..." %></p>
</div>
<% else %>
<%= article.html(:body) %>
<% if article.extended? %>
Expand Down

0 comments on commit b7839d2

Please sign in to comment.