Created
August 2, 2014 16:33
-
-
Save fullstackplus/cfe7cebb99ddfe6291ba to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Template: template_index | |
%section | |
%h1 Recent articles | |
%ol.recent-articles | |
- latest_articles(5).each do |article| | |
%li.group | |
%div.half | |
= haml :page_date, :layout => false, :locals => { :page => article } | |
%h1.article-heading | |
%a(href="#{article.abspath}")= article.heading | |
= haml :page_categories, :layout => false, :locals => { :page => article } | |
%div.half | |
~ article.summary | |
%p.read-more | |
%a(href="#{url(article.abspath)}")= "Read more" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment