{% for i in contents | split("\n") %}{{ loop.index0 + 1 }}{{ i }} {% endfor %}
{% for i in contents | split("\n") %}{% elif mode == "image" %} {% elif mode == "audio" %} {% elif mode == "video" %} {% endif %}{{ loop.index0 + 1 }}{{ i }} {% endfor %}