-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3519462
commit 02cd02e
Showing
4 changed files
with
48 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{% assign items_max = 0 %} | ||
{% for item in include.taxonomies %} | ||
{% if item[1].size > items_max %} | ||
{% assign items_max = item[1].size %} | ||
{% endif %} | ||
{% endfor %} | ||
|
||
<ul class="taxonomy__index"> | ||
{% for i in (1..items_max) reversed %} | ||
{% for item in include.taxonomies %} | ||
{% if item[1].size == i %} | ||
<li> | ||
<a href="#{{ item[0] | slugify }}"> | ||
<strong>{{ item[0] }}</strong> <span class="taxonomy__count">{{ i }}</span> | ||
</a> | ||
</li> | ||
{% endif %} | ||
{% endfor %} | ||
{% endfor %} | ||
</ul> | ||
|
||
{% assign entries_layout = page.entries_layout | default: 'list' %} | ||
{% for i in (1..items_max) reversed %} | ||
{% for taxonomy in include.taxonomies %} | ||
{% if taxonomy[1].size == i %} | ||
<section id="{{ taxonomy[0] | slugify }}" class="taxonomy__section"> | ||
<h2 class="archive__subtitle"> | ||
<span>{{ taxonomy[0] }}</span> | ||
<a href="{{ '/feed/by_tag/' | append: taxonomy[0] | append: '.xml' | relative_url }}"> | ||
<i class="fas fa-square-rss"></i> | ||
</a> | ||
</h2> | ||
<div class="entries-{{ entries_layout }}"> | ||
{% for post in taxonomy.last %} | ||
{% include archive-single.html type=entries_layout %} | ||
{% endfor %} | ||
</div> | ||
<a href="#page-title" class="back-to-top">{{ site.data.ui-text[site.locale].back_to_top | default: 'Back to Top' }} ↑</a> | ||
</section> | ||
{% endif %} | ||
{% endfor %} | ||
{% endfor %} |
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