forked from github/pelican
feat: add work in progress state
This commit is contained in:
parent
84db21c724
commit
de5b3aec04
14 changed files with 2537 additions and 37 deletions
28
pelican/themes/simple/templates/pagination.html
vendored
28
pelican/themes/simple/templates/pagination.html
vendored
|
|
@ -1,17 +1,21 @@
|
|||
{% if DEFAULT_PAGINATION %}
|
||||
{% set first_page = articles_paginator.page(1) %}
|
||||
{% set last_page = articles_paginator.page(articles_paginator.num_pages) %}
|
||||
<nav>
|
||||
<ul>
|
||||
{% if articles_page.has_previous() %}
|
||||
{% if DEFAULT_PAGINATION %} {% set first_page = articles_paginator.page(1) %} {%
|
||||
set last_page = articles_paginator.page(articles_paginator.num_pages) %}
|
||||
<nav>
|
||||
<ul class="list-none">
|
||||
{% if articles_page.has_previous() %}
|
||||
<li><a href="{{ SITEURL }}/{{ first_page.url }}">⟪</a></li>
|
||||
<li><a href="{{ SITEURL }}/{{ articles_previous_page.url }}">⟨</a></li>
|
||||
{% endif %}
|
||||
<li>Page {{ articles_page.number }} / {{ articles_paginator.num_pages }}</li>
|
||||
{% if articles_page.has_next() %}
|
||||
<li>
|
||||
<a href="{{ SITEURL }}/{{ articles_previous_page.url }}">⟨</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
<li>
|
||||
Page {{ articles_page.number }} of {{ articles_paginator.num_pages
|
||||
}}
|
||||
</li>
|
||||
{% if articles_page.has_next() %}
|
||||
<li><a href="{{ SITEURL }}/{{ articles_next_page.url }}">⟩</a></li>
|
||||
<li><a href="{{ SITEURL }}/{{ last_page.url }}">⟫</a></li>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</ul>
|
||||
</nav>
|
||||
</nav>
|
||||
{% endif %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue