{% for random_story in random_stories %}

{{ random_story.title }}

{%- for category in random_story.categories|sort(attribute='id') -%} {{ category.name }} {%- endfor -%}

{{ random_story.summary_as_html|striptags|truncate(120) }}

{%- for character in random_story.characters|sort(attribute='id') -%} {{ character.name }} {%- endfor -%}

{% endfor %}