Compare tags as lowercase
This commit is contained in:
parent
eac8e6817c
commit
d6b575af05
1 changed files with 6 additions and 3 deletions
|
|
@ -20,9 +20,12 @@
|
|||
|
||||
<div>
|
||||
{% for post in site.posts %}
|
||||
{% if post.tags contains tag %}
|
||||
{% include post-list.html%}
|
||||
{% endif %}
|
||||
{% for t in post.tags %}
|
||||
{% capture tg %}{{ t | downcase }}{% endcapture %}
|
||||
{% if tg == tag %}
|
||||
{% include post-list.html%}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue