lib/views/post.haml in schnitzelpress-0.0.13 vs lib/views/post.haml in schnitzelpress-0.1.0
- old
+ new
@@ -1,7 +1,16 @@
- set_page_title @post.title.presence
= partial @post, :complete => true
+- if @extra_posts
+ %section.extra_posts
+ %h1
+ %a{href: '/blog'}= @extra_posts.first
+ %ul
+ - for post in @extra_posts.second
+ %li
+ %a{:href => post.to_url}= h post.title
+
- if show_disqus? && @post.disqus?
%section.disqus
= partial 'disqus', :disqus_identifier => @post.disqus_identifier