finish renaming pages to posts
This commit is contained in:
9
app/views/blog/index.haml
Normal file
9
app/views/blog/index.haml
Normal file
@ -0,0 +1,9 @@
|
||||
.blog.blog_index
|
||||
- @pages.each do |slug , page|
|
||||
.row
|
||||
.col-md-2
|
||||
.col-md-8
|
||||
%h2= link_to page.title , blog_page_url(page.slug)
|
||||
= render( page.template_name )[0 ... 350].html_safe
|
||||
%span.whole= link_to ". . . .Read whole post" , blog_page_url(page.slug)
|
||||
.col-md-2
|
16
app/views/blog/post.haml
Normal file
16
app/views/blog/post.haml
Normal file
@ -0,0 +1,16 @@
|
||||
.social_box
|
||||
.social
|
||||
.social__item
|
||||
%span.fa.icon-facebook{"data-count" => "", "data-social" => "fb"}
|
||||
.social__item
|
||||
%span.fa.icon-twitter{"data-count" => "", "data-social" => "tw"}
|
||||
.social__item
|
||||
%span.fa.icon-linkedin{"data-count" => "", "data-social" => "ln"}
|
||||
.social__item
|
||||
%span.fa.icon-gplus{"data-count" => "", "data-social" => "gp"}
|
||||
|
||||
.blog
|
||||
.center_col
|
||||
%h1= @post.title
|
||||
.center_col
|
||||
= render( @post.template_name )
|
Reference in New Issue
Block a user