{% set post = __SELF__.post %} {% set paginator = __SELF__.paginator %}

This plugin component ({{ __SELF__.alias }}) provides default markup as a convenience to developers but should be overridden by the theme (Winter CMS Docs).

To view and download a completed theme to help with implementation, please see posts-plugin.dynamedia.uk and Github. The demo theme is MIT licensed and is therefore free to modify and redistribute.

{% if post.is_published %} By {{ post.author.first_name }} {{ post.author.last_name }}, on {{ post.published_at | date('d-m-Y') }} {% if post.primary_category %} in {{ post.primary_category.name }} {% endif %} {% if post.updated_at > post.published_at %}
Last updated {{ post.updated_at | date('d-m-Y') }} {% endif %} {### INFO FOR MULTI-PAGE POSTS ###} {% if post.pages | length > 1 %}

Page {{ __SELF__.getRequestedPage }} of {{ post.pages | length }}

{% endif %}
{% endif %} {% if post.contents_list | length > 0 %}

Contents

{% endif %} {{ post.body.renderPage(paginator.currentPage) | raw }} {% if paginator.total > 0 %} {{ paginator.links() | raw }} {% endif %}