mirror of
https://github.com/ascii-boxes/boxes.git
synced 2025-02-01 10:29:24 +01:00
c049484e4c
- Updated frameworks for better browser support - Improved responsive design - Versioned documentation - Better social media support via the Jekyll SEO plugin - New looks, fwiw - Start page has some more relevant info - Documentation sorted to be more easily accessible - Internally upgraded from plain CSS to SASS
32 lines
1.3 KiB
HTML
32 lines
1.3 KiB
HTML
{%- comment -%}
|
|
|
|
Outputs the paginator navigation controls
|
|
|
|
{%- endcomment -%}
|
|
|
|
{% if site.paginate -%}
|
|
<ul class="pagination">
|
|
{% if paginator.previous_page -%}
|
|
<li class="page-item"><a class="page-link" href="{{ paginator.previous_page_path | relative_url }}">« Prev</a></li>
|
|
{%- else -%}
|
|
<li class="page-item disabled"><a class="page-link" href="#">« Prev</a></li>
|
|
{%- endif -%}
|
|
|
|
{%- for page in (1..paginator.total_pages) -%}
|
|
{% if page == paginator.page -%}
|
|
<li class="page-item active"><a class="page-link" href="#">{{ page }}</a></li>
|
|
{%- elsif page == 1 -%}
|
|
<li class="page-item"><a class="page-link" href="{{ '/blog/' | relative_url }}">{{ page }}</a></li>
|
|
{%- else -%}
|
|
<li class="page-item"><a class="page-link" href="{{ site.paginate_path | relative_url | replace: ':num', page }}">{{ page }}</a></li>
|
|
{%- endif -%}
|
|
{%- endfor -%}
|
|
|
|
{%- if paginator.next_page -%}
|
|
<li class="page-item"><a class="page-link" href="{{ paginator.next_page_path | relative_url }}">Next »</a></li>
|
|
{%- else -%}
|
|
<li class="page-item disabled"><a class="page-link" href="#">Next »</a></li>
|
|
{%- endif %}
|
|
</ul>
|
|
{%- endif %}
|