Skip to content

Commit

Permalink
changes so that tags can contain spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
SeraphRoy committed Jun 29, 2018
1 parent 8586079 commit 6e707e4
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions page/2tags.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,11 @@
<div class="left">
<h1>{{page.title}}</h1>
<hr>
{% capture tags %}
{% for tag in site.tags %}
{{ tag[0] }}
{% endfor %}
{% endcapture %}
{% assign sortedtags = tags | split:' ' | sort %}

{% assign alltags = '' | split: '' %}
{% for tag in site.tags %}
{% assign alltags = alltags | push: tag[0]%}
{% endfor %}
{% assign sortedtags = alltags | sort %}
<ul>
{% for tag in sortedtags %}
<h2 id="{{ tag }}">{{ tag }}</h2>
Expand Down

0 comments on commit 6e707e4

Please sign in to comment.