{% extends 'faq/base.html' %} {% block form_content %} {% for category in categories %}

{{ category.name }}

{% include 'faq/topics.inc.html' with topics=category.topics.all|slice:':5' %}
{% if category.topics.count > 5 %}

More questions

{% endif %} {% if not forloop.last %}
{% endif %} {% endfor %} {% endblock form_content %}