lib/ecrire/theme/template/views/posts/_post.html.erb in ecrire-0.24.1 vs lib/ecrire/theme/template/views/posts/_post.html.erb in ecrire-0.25.0
- old
+ new
@@ -1,9 +1,9 @@
<li class="post">
- <%= content_tag :h2, link_to(post.title, post_path(post)) %>
+ <%= content_tag :h2, link_to(post.title, url('/:post.year/:post.month/:post.slug', post: post)) %>
<%= content_tag :time, l(post.published_at.to_date, format: :long) %>
<div class='content'>
<%= post.excerpt %>
</div>
- <%= link_to 'Read more', post_path(post), class: %w(read) %>
+ <%= link_to 'Read more', url('/:post.year/:post.month/:post.slug/', post: post), class: %w(read) %>
</li>