mirror of
https://github.com/facebook/rocksdb.git
synced 2024-11-27 02:44:18 +00:00
30 lines
975 B
HTML
30 lines
975 B
HTML
|
<!-- Pagination links - copied from http://jekyllrb.com/docs/pagination/ -->
|
||
|
{% if paginator.total_pages > 1 %}
|
||
|
<br />
|
||
|
<div class="pagination">
|
||
|
{% if paginator.previous_page %}
|
||
|
<a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">« Prev</a>
|
||
|
{% else %}
|
||
|
<span>« Prev</span>
|
||
|
{% endif %}
|
||
|
|
||
|
{% for page in (1..paginator.total_pages) %}
|
||
|
{% if page == paginator.page %}
|
||
|
<em>{{ page }}</em>
|
||
|
{% elsif page == 1 %}
|
||
|
<a href="{{ '/blog' | prepend: site.baseurl }}">{{ page }}</a>
|
||
|
{% else %}
|
||
|
<a href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a>
|
||
|
{% endif %}
|
||
|
{% endfor %}
|
||
|
|
||
|
{% if paginator.next_page %}
|
||
|
<a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Next »</a>
|
||
|
{% else %}
|
||
|
<span>Next »</span>
|
||
|
{% endif %}
|
||
|
</div>
|
||
|
<br />
|
||
|
{% endif %}
|
||
|
|