[Update] Blog: style blog page / featureposts

This commit is contained in:
0xfff 2016-11-05 16:24:20 +01:00
parent d6f33aebea
commit 3aa5989f2c
11 changed files with 132 additions and 49 deletions

View file

@ -1,21 +1,21 @@
{% if paginator.total_pages > 1 %}
<div class="pagination">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">&laquo; Prev</a>
<a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}" class="pagination__prev">&laquo; Prev</a>
{% endif %}
{% for page in (1..paginator.total_pages) %}
{% if page == paginator.page %}
<em>{{ page }}</em>
<em class="pagination__current">{{ page }}</em>
{% elsif page == 1 %}
<a href="/blog">{{ page }}</a>
<a href="/blog" class="pagination__link pagination__link--start">{{ page }}</a>
{% else %}
<a href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a>
<a href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}" class="pagination__link">{{ page }}</a>
{% endif %}
{% endfor %}
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Next &raquo;</a>
<a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}" class="pagination__next">Next &raquo;</a>
{% endif %}
</div>
{% endif %}
{% endif %}