~animesh/anmsh.net

162784db6e7dcbb62eb49e7c69b522c3449f5a08 — Animesh Bulusu 7 days ago 38951e6
Filter tag without posts
1 files changed, 7 insertions(+), 5 deletions(-)

M templates/macros/tags.html
M templates/macros/tags.html => templates/macros/tags.html +7 -5
@@ 1,9 1,11 @@
{% macro render_tags() %}
  <div class="tags">
    <ul>
<div class="tags">
  <ul>
    {% for tag in site.query('/tags') %}
      <li><a href="{{ tag|url }}">{{ tag.name }}</a></li>
    {%if tag.children.include_undiscoverable(true) %}
    <li><a href="{{ tag|url }}">{{ tag.name }}</a> <small>({{tag.children.include_undiscoverable(true).count()}})</small></li>
    {%endif%}
    {% endfor %}
    </ul>
  </div>
  </ul>
</div>
{% endmacro %}
\ No newline at end of file