sass-site/source/blog.html.haml
2021-07-23 23:28:41 +00:00

18 lines
515 B
Plaintext

---
title: Sass Blog
pageable: true
per_page: 5
---
- if paginate && num_pages > 1
%p Page #{page_number} of #{num_pages}
%p= link_to 'Previous page', without_html(prev_page) if prev_page
- page_articles.each_with_index do |article, i|
%h2= link_to article.title, without_html(article)
= partial 'layouts/components/attribution', locals: {page: article}
= article.summary.gsub(/href="#/, "href=\"#{without_html(article)}#")
- if paginate
%p= link_to 'Next page', without_html(next_page) if next_page