{% extends "base.html" %} {% block header %} Categories {{ terms | length }} categories in total {% endblock %} {% block content %} {% for category in terms %} {{ category.name }}{{ category.pages | length }} {% endfor %} {% endblock content %}