sass-site/source/blog.html.haml

18 lines
515 B
Plaintext
Raw Normal View History

---
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}
2021-07-24 01:28:41 +02:00
= article.summary.gsub(/href="#/, "href=\"#{without_html(article)}#")
- if paginate
%p= link_to 'Next page', without_html(next_page) if next_page