13 lines
334 B
Plaintext
Raw Normal View History

2018-04-11 19:34:35 +03:00
.blog_index
2018-04-10 22:48:23 +03:00
- @posts.each do |slug , post|
2018-04-11 17:32:38 +03:00
%h2
2018-04-11 19:34:35 +03:00
= link_to post.title.capitalize , blog_post_url(post.slug)
2018-04-11 17:32:38 +03:00
%span
(
=post.date
)
%div
= render( "posts/#{post.template_name}" )[0 ... 350].html_safe
%span.whole= link_to ". . . .Read whole post" , blog_post_url(post.slug)
%hr