mirror of
https://github.com/arcan1s/arcanis.me.git
synced 2025-07-15 06:05:47 +00:00
try to test paginator
This commit is contained in:
37
blog.html
37
blog.html
@ -4,14 +4,6 @@ title: arcanis' blog
|
||||
comment: false
|
||||
share: false
|
||||
back: 1
|
||||
posts:
|
||||
- title: About zshrc
|
||||
date: 14 January 2014
|
||||
last: 14 January 2014
|
||||
tags:
|
||||
- zshrc
|
||||
- configuration
|
||||
- linux
|
||||
---
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
@ -27,4 +19,33 @@ posts:
|
||||
<p align="justify"><b>Tags</b>: {{ post.tags }}</p>
|
||||
{% endfor %}
|
||||
|
||||
{% if paginator.total_pages > 1 %}
|
||||
<nav><ol>
|
||||
{% if paginator.previous_page > 1 %}
|
||||
{% capture page_url %}page{{ page }}{% endcapture%}
|
||||
{% endif %}
|
||||
{% if paginator.previous_page %}
|
||||
<li><a href="/{{ page_url }}" title="Go to previous page">«</a></li>
|
||||
{% endif %}
|
||||
<li>
|
||||
{% for page in (1..paginator.total_pages) %}
|
||||
<li>
|
||||
{% if page > 1 %}
|
||||
{% capture page_url %}page{{ page }}{% endcapture%}
|
||||
{% endif %}
|
||||
{% if page == paginator.page %}
|
||||
{{ page }}
|
||||
{% else %}
|
||||
<a href="/{{ page_url }}">{{ page }}</a>
|
||||
{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
{% if paginator.next_page %}
|
||||
<li>
|
||||
<a href="/page{{ paginator.next_page }}" title="Go to next page">»</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
</ol></nav>
|
||||
{% endif %}
|
||||
|
||||
<script type="text/javascript" src="http://datejs.googlecode.com/svn/trunk/build/date-en-US.js"></script>
|
||||
|
Reference in New Issue
Block a user