Skip to content

Commit

Permalink
Update archives.md
Browse files Browse the repository at this point in the history
  • Loading branch information
janosrusiczki authored Jan 22, 2024
1 parent 54d0d34 commit fa9717a
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions archives.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@ title: Archives
{% year_utilities years_with_month_links %}

<h2>Category based archives</h2>
{% capture category_names %}
{% for category in site.categories %}|{{ category | first }}{% endfor %}
{% endcapture %}
{% capture category_names %}{% for category in site.categories %}|{{ category | first }}{% endfor %}{% endcapture %}
{% assign sorted_category_names = category_names | split: '|' | sort %}
{% for category_name in sorted_category_names %}
{% if category_name != "" %}
<a href="/category/{{category_name | slugify}}">{{category_name}}</a>{% unless forloop.last %}, {% endunless %}
{% endif %}
{% endfor %}
{% for category_name in sorted_category_names %}{% if category_name | strip != "" %}<a href="/category/{{category_name | slugify}}">{{category_name}}</a>{% unless forloop.last %}, {% endunless %}{% endif %}{% endfor %}

0 comments on commit fa9717a

Please sign in to comment.