_includes/section/count.html in appscms-tools-theme-3.1.1 vs _includes/section/count.html in appscms-tools-theme-3.1.2

- old
+ new

@@ -1,37 +1,37 @@ -<div class="explore"> - <div class="container"> - {%- if site.monumetricId and page.url != '/' and page.lang == "en" -%} - - <div class="row"> - <div class="col-md-9 mx-auto"> - {%- endif -%} - <h2>Explore <span class="d-none d-md-inline">→</span></h2> - - <ul class="mt-3"> - {% 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> - {% 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> - {% endfor %} - {% endif %} - {% assign categories_list = nil %} - </ul> - {%- if site.monumetricId and page.url != '/' and page.lang == "en" -%} - - </div> - </div> - {%- endif -%} - - </div> +<div class="explore"> + <div class="container"> + {%- if site.monumetricId and page.url != '/' and page.lang == "en" -%} + + <div class="row"> + <div class="col-md-9 mx-auto"> + {%- endif -%} + <h2>Explore <span class="d-none d-md-inline">→</span></h2> + + <ul class="mt-3"> + {% 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> + {% 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> + {% endfor %} + {% endif %} + {% assign categories_list = nil %} + </ul> + {%- if site.monumetricId and page.url != '/' and page.lang == "en" -%} + + </div> + </div> + {%- endif -%} + + </div> </div> \ No newline at end of file