_includes/section/count.html in word-games-theme-1.5.1 vs _includes/section/count.html in word-games-theme-1.5.2
- old
+ new
@@ -6,22 +6,27 @@
<h2 class="text-center font-weight-bolder mb-5">Explore <span class="d-none d-md-inline">→</span></h2>
<ul>
{% assign categories_list = site.categories %}
{% if categories_list.first[0] == null %}
{% for category in categories_list %}
- <a class="cat mt-1 mb-1"
- href="/blog/categories#{{ category | url_escape | strip | replace: ' ', '-' }}">{{
- category
- |
- camelcase }} ({{ site.tags[category].size }})</a>
+ <li>
+ <a class="cat mt-1 mb-1"
+ href="/blog/categories#{{ category | url_escape | strip | replace: ' ', '-' }}">{{
+ category
+ |
+ camelcase }} ({{ site.tags[category].size }})</a>
+ </li>
+
{% endfor %}
{% else %}
{% for category in categories_list %}
- <a class="cat mt-1 mb-1"
- href="/blog/categories#{{ category[0] | url_escape | strip | replace: ' ', '-' }}">{{
- category[0]
- | camelcase }} ({{ category[1].size }})</a>
+ <li>
+ <a class="cat mt-1 mb-1"
+ href="/blog/categories#{{ category[0] | url_escape | strip | replace: ' ', '-' }}">{{
+ category[0]
+ | camelcase }} ({{ category[1].size }})</a>
+ </li>
{% endfor %}
{% endif %}
{% assign categories_list = nil %}
</ul>
@@ -34,19 +39,24 @@
<h2>Explore <span class="d-none d-md-inline">→</span></h2>
<ul>
{% assign categories_list = site.categories %}
{% if categories_list.first[0] == null %}
{% for category in categories_list %}
- <a class="cat mt-1 mb-1" href="/blog/categories#{{ category | url_escape | strip | replace: ' ', '-' }}">{{
- category
- |
- camelcase }} ({{ site.tags[category].size }})</a>
+ <li>
+ <a class="cat mt-1 mb-1" href="/blog/categories#{{ category | url_escape | strip | replace: ' ', '-' }}">{{
+ category
+ |
+ camelcase }} ({{ site.tags[category].size }})</a>
+ </li>
{% endfor %}
{% else %}
{% for category in categories_list %}
- <a class="cat mt-1 mb-1" href="/blog/categories#{{ category[0] | url_escape | strip | replace: ' ', '-' }}">{{
- category[0]
- | camelcase }} ({{ category[1].size }})</a>
+ <li>
+ <a class="cat mt-1 mb-1"
+ href="/blog/categories#{{ category[0] | url_escape | strip | replace: ' ', '-' }}">{{
+ category[0]
+ | camelcase }} ({{ category[1].size }})</a>
+ </li>
{% endfor %}
{% endif %}
{% assign categories_list = nil %}
</ul>
</div>
\ No newline at end of file