Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
junsan1 committed Jul 6, 2024
1 parent 531a832 commit 927c2b6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion _layouts/software_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,15 @@
<h1>{{ page.title }}</h1>

<div id="filters">
{% assign all_filters = page.software | map: "filters" | flatten | uniq | sort %}
{% assign all_filters = '' | split: '' %}
{% for item in page.software %}
{% for filter in item.filters %}
{% unless all_filters contains filter %}
{% assign all_filters = all_filters | push: filter %}
{% endunless %}
{% endfor %}
{% endfor %}

<button class="filter-btn active" data-filter="all">All</button>
{% for filter in all_filters %}
<button class="filter-btn" data-filter="{{ filter }}">{{ filter }}</button>
Expand Down

0 comments on commit 927c2b6

Please sign in to comment.