better blog index and fix news link

This commit is contained in:
Torsten Ruger
2018-04-11 17:32:38 +03:00
parent 22a3d42cb6
commit 90fc084fca
4 changed files with 28 additions and 24 deletions

View File

@ -1,9 +1,12 @@
.blog.blog_index
- @posts.each do |slug , post|
.row
.col-md-2
.col-md-8
%h2= link_to post.title , blog_post_url(post.slug)
= render( "posts/#{post.template_name}" )[0 ... 350].html_safe
%span.whole= link_to ". . . .Read whole post" , blog_post_url(post.slug)
.col-md-2
%h2
= link_to post.title , blog_post_url(post.slug)
%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