ruby-x.github.io/app/views/blog/post.haml
2018-04-22 19:42:29 +03:00

23 lines
428 B
Plaintext

.row.blog_nav
.prev_post=raw(prev_post(@post))
.next_post=raw(next_post(@post))
.blog_post
.center_col
%h1
= @post.title.capitalize
%span
(
=@post.date
)
.center_col
= render( "posts/#{@post.template_name}" )
.row
%ul.nav
- Post.posts.each do |slug, post|
%li
=link_to blog_post_path(slug) do
=post.title.capitalize
%small= post.date