ruby-x.github.io/app/views/blog/post.haml
2018-04-11 19:34:35 +03:00

23 lines
418 B
Plaintext

.row.blog_nav
.prev=raw(prev_post(@post))
.next=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