mirror of
https://github.com/danog/sass-site.git
synced 2024-12-11 17:09:52 +01:00
18 lines
515 B
Plaintext
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
|