{% if note.tags.count > 0 %}
Tags: {% for tag in note.tags.all %} {{ tag.name }} {% if not forloop.last %}, {% endif %} {% endfor %}
{% endif %}
{{ note.text|slice:":500" }} …