ruby-x.github.io/app/views/blog/post.haml

23 lines
428 B
Plaintext
Raw Normal View History

2018-04-11 18:34:35 +02:00
.row.blog_nav
2018-04-22 18:42:29 +02:00
.prev_post=raw(prev_post(@post))
.next_post=raw(next_post(@post))
2018-04-10 21:14:02 +02:00
2018-04-11 18:34:35 +02:00
.blog_post
2018-04-10 21:14:02 +02:00
.center_col
2018-04-11 18:34:35 +02:00
%h1
= @post.title.capitalize
%span
(
=@post.date
)
2018-04-10 21:14:02 +02:00
.center_col
2018-04-10 21:30:17 +02:00
= render( "posts/#{@post.template_name}" )
2018-04-11 18:34:35 +02:00
.row
%ul.nav
- Post.posts.each do |slug, post|
%li
=link_to blog_post_path(slug) do
=post.title.capitalize
%small= post.date