{% extends "til_base.html" %} {% block title %}TIL{% endblock %} {% block extra_head %} {% endblock %} {% block body %} {% set til_count = sql("select count(*) from TIL", database="tils")[0][0] %}
Browse by topic: {% for row in sql("select topic, count(*) as num_tils from til group by topic order by topic", database="tils") %} 1 else "" }}" href="/{{ row.topic }}">{{ row.topic }} {{ row.num_tils }}{% if not loop.last %} ·{% endif %} {% endfor %}