Skip to content

Commit

Permalink
Add listing of all tags at beginning
Browse files Browse the repository at this point in the history
  • Loading branch information
osumray committed Dec 11, 2023
1 parent 0e7e5ce commit 3bde4e2
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
6 changes: 6 additions & 0 deletions css/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ form {
}
}

.all_tags{
padding-top: 10px;
line-height: 1.5;
text-align: center;
}

input[type="text"] {
outline: none;
border: none;
Expand Down
17 changes: 17 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,26 @@ <h1 class="main_head">
Hint: Press enter to add the current search term as a tag filter.
</p>
<table>
Chosen tags:
<td class="software_tags hidden" id="filter-tags">
</td></table>
</div>

<div class="all_tags">
All tags:
<br>
{% capture tags_content %}{% include_relative metadata/all-tags.txt %}{% endcapture %}
{% assign tags = tags_content | newline_to_br | split: '<br />' %}
{% for tag in tags %}
{%- assign stripped_tag = tag | strip_newlines -%}
{% if stripped_tag != "" %}
{%- assign tag_main = stripped_tag | split:"/" | first -%}
<span class="TAG_{{ tag_main}} pill">{{ stripped_tag }}&nbsp;<button onclick="addTag('{{ stripped_tag }}', true)" class="add-button"></button></span>
{% endif %}
{% endfor %}
</div>


<table>
<thead>
<th>Software</th>
Expand Down

0 comments on commit 3bde4e2

Please sign in to comment.