fix blog index and links
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user