{% extends "til_base.html" %} {% set tils = sql(""" select * from til where topic = :topic order by created_utc desc """, {"topic": topic}, database="tils") %} {% block title %}TILs on {{ topic }}{% endblock %} {% block body %} {% if not tils %} {{ raise_404("No TILs found") }} {% endif %}

TILs on {{ topic }}

{% for til in tils %}

{{ til.topic }} {{ til.title }} - {{ til.created[:10] }}

{{ first_paragraph(til["html"]).replace("

", " …

")|safe }} {% endfor %} {% endblock %}