-
-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #866 from Queen-codes/blog-refactor
refactored blog page to align with vocabulary markup
- Loading branch information
Showing
6 changed files
with
125 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
{% from "macros/posts.html" import render_posts %} | ||
|
||
{% macro render_categories(categories) %} | ||
{% for category in site.query(categories.path) %} | ||
<a class="button tag margin-vertical-small margin-horizontal-smaller" href="{{ category|url }}">{{ category.name }}</a> | ||
{% endfor %} | ||
<ul> | ||
{% for category in site.query(categories.path) %} | ||
<li> | ||
<a href="{{ category|url }}">{{ category.name }}</a> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
{% endmacro %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,15 @@ | ||
{% macro render_pagination(pagination) %} | ||
<nav class="pagination" role="navigation" aria-label="pagination"> | ||
<ul class="pagination-list"> | ||
{% if pagination.has_prev %} | ||
<li class="inactive"> | ||
<a class="pagination-link inactive-link" href="{{ pagination.prev|url }}" aria-label="Goto previous"><i class="icon chevron-left"></i></a> | ||
</li> | ||
{% endif %} | ||
{% for p in range(pagination.pages) %} | ||
{% if pagination.current|url == pagination.for_page(p+1)|url %} | ||
<li class="common"> | ||
<a class="pagination-link is-current common-link" aria-label="Goto page {{p+1}}" aria-current="page" href="{{ pagination.for_page(p+1)|url}}">{{p+1}}</a> | ||
</li> | ||
{% else %} | ||
<li class="inactive"> | ||
<a class="pagination-link inactive-link" aria-label="Goto page {{p+1}}" href="{{ pagination.for_page(p+1)|url}}">{{p+1}}</a> | ||
</li> | ||
{% endif %} | ||
{% endfor %} | ||
{% if pagination.has_next %} | ||
<li class="inactive"> | ||
<a class="pagination-link inactive-link" href="{{ pagination.next|url }}" aria-label="Goto next"><i class="icon chevron-right"></i></a> | ||
</li> | ||
{% endif %} | ||
</ul> | ||
</nav> | ||
<nav class="pagination"> | ||
<ol> | ||
{% if pagination.has_prev %} | ||
<li><a href="{{ pagination.prev|url }}"><</a></li> | ||
{% endif %} | ||
{% for page in range(pagination.pages) %} | ||
<li class="{% if page + 1 == pagination.current %}current{% endif %}"><a href="{{ pagination.for_page(page + 1)|url }}">{{ page + 1 }}</a></li> | ||
{% endfor %} | ||
{% if pagination.has_next %} | ||
<li><a href="{{ pagination.next|url }}">></a></li> | ||
{% endif %} | ||
</ol> | ||
</nav> | ||
{% endmacro %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters