fix blog index and links

This commit is contained in:
Torsten Ruger
2018-04-10 22:48:23 +03:00
parent d233cb0dca
commit c143b5bbd0
5 changed files with 21 additions and 18 deletions

View File

@ -1,2 +1,9 @@
module ApplicationHelper
def post_link(index)
post = Post.posts.values[index]
return "" unless post
link = post.date.to_s + " "
link += link_to( post.title , blog_post_url(post.slug))
link.html_safe
end
end