{% for post in posts %} https://{{ current_app.config['SERVER_NAME'] }}/post/{{ post.id }} {{ ap_datetime(post.edited_at) if post.edited_at else ap_datetime(post.posted_at) }} {% endfor %}