{% if (viewPost ? postExists : newsPosts|length) %}
{% for post in newsPosts %}
{% include 'elements/newsPost.tpl' %}
{% if viewPost and postExists %}
{% include 'elements/comments.tpl' %}
{% endif %}
{% endfor %}
{% if not (viewPost and postExists) and news.getPosts(postsPerPage)|length > 1 %}
{% endif %}
{% include 'elements/pagination.tpl' %}
{% endif %}
{% else %}
The requested news post does not exist!
There are a few possible reasons for this;- The post may have been deleted due to irrelevancy.
- The post never existed.