diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2015-08-25 15:50:01 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2015-08-25 15:51:51 +0200 |
commit | bf9f0c429788bc0b6a07867d3ad880bcdf75885d (patch) | |
tree | 617935c5abdc6f45bf92923c2c16f4becee8cb10 /blog/_includes | |
parent | 59796270fef02a4cfcd5e283b193d018b9a29712 (diff) | |
download | norsk-urskog-main-bf9f0c429788bc0b6a07867d3ad880bcdf75885d.tar.gz norsk-urskog-main-bf9f0c429788bc0b6a07867d3ad880bcdf75885d.tar.bz2 norsk-urskog-main-bf9f0c429788bc0b6a07867d3ad880bcdf75885d.zip |
Move pagination to separate partial and style it a bit.
Diffstat (limited to 'blog/_includes')
-rw-r--r-- | blog/_includes/pagination.html | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/blog/_includes/pagination.html b/blog/_includes/pagination.html new file mode 100644 index 0000000..061b03f --- /dev/null +++ b/blog/_includes/pagination.html @@ -0,0 +1,10 @@ +<!-- Pagination links --> +<section class="pagination"> + <span class="page_number ">{% t home.page_no %} {{ paginator.page }} / {{ paginator.total_pages }}</span> + {% if paginator.previous_page %} + <a href="{{ paginator.previous_page_path | prepend: site.baseurl }}" class="previous">{% t home.prev_page %}</a> + {% endif %} + {% if paginator.next_page %} + <a href="{{ paginator.next_page_path | prepend: site.baseurl }}" class="next">{% t home.next_page %}</a> + {% endif %} +</section> |