Sha256: 962bc558f89e8614b1b8e3f1fe0394575e757f7330705f121e0b9a96dfb81bb7

Contents?: true

Size: 799 Bytes

Versions: 4

Compression:

Stored size: 799 Bytes

Contents

{% if paginator.total_pages > 1 %}
<div class="list-pagination">
  {% if paginator.previous_page %}
  <a
    class="pagination-arrow arrow-left"
    href="{{ paginator.previous_page_path | relative_url }}"
  >
    上一页
  </a>
  {% endif %}
  <!-- {% for page in (1..paginator.total_pages) %} {% if page ==
  paginator.page %}
  <em>{{ page }}</em>
  {% elsif page == 1 %}
  <a href="{{ paginator.previous_page_path | relative_url }}">
    {{ page }}
  </a>
  {% else %}
  <a href="{{ site.paginate_path | relative_url | replace: ':num', page }}">
    {{ page }}
  </a>
  {% endif %} {% endfor %}  -->
  {% if paginator.next_page %}
  <a
    class="pagination-arrow arrow-right"
    href="{{ paginator.next_page_path | relative_url }}"
  >
    下一页
  </a>
  {% endif %}
</div>

{% endif %}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
yoyoyo-0.0.14 _includes/pagination.html
yoyoyo-0.0.13 _includes/pagination.html
yoyoyo-0.0.12 _includes/pagination.html
yoyoyo-0.0.11 _includes/pagination.html