{% if is_listing_view %}
{% else %}
{#
#}
{% endif %}
{# simple_list_page indicates the "blog/all" page, which is a list of links to every blog post #}
{% if blog_author %}
{% endif %}
{% if not simple_list_page %}
{{ blog_author.display_name }}
{% if blog_author.avatar %}{{ blog_author.bio }}
{% if blog_author.has_social_profiles %}
{% endif %}
Recent Posts
{% endif %} {% for content in contents %}
{% if not simple_list_page %}
{% if content_group.show_summary_in_listing %}
Continue Reading →
{% endif %}
{% else %}
{% endfor %}
{{ content.name }}
{%if content.blog_post_author %}
{{ content.blog_post_author.display_name }}
{% endif %}
{% set comments_number = content.comment_list|length %}
{% if comments_number == 1 %}
{% set comments_lable = "Comment" %}
{% else %}
{% set comments_lable = "Comments" %}
{% endif %}
{{ comments_number }} {{ comments_lable }}
{{ content.publish_date_local_time.strftime('%B') }} {{ content.publish_date_local_time.strftime('%d') }}, {{ content.publish_date_local_time.strftime('%Y') }}
{{ content.name }}
{% endif %}
{% set page_list = [-2, -1, 0, 1, 2] %}
{% if contents.total_page_count - current_page_num == 1 %}{% set offset = -1 %}
{% elif contents.total_page_count - current_page_num == 0 %}{% set offset = -2 %}
{% elif current_page_num == 2 %}{% set offset = 1 %}
{% elif current_page_num == 1 %}{% set offset = 2 %}
{% else %}{% set offset = 0 %}{% endif %}
{% endif %}
{% for page in page_list %}
{% set this_page = current_page_num + page + offset %}
{% if this_page > 0 and this_page <= contents.total_page_count %}
{{ this_page }}
{% endif %}
{% endfor %}
{% if contents.total_page_count > 5 %}
{% if contents.total_page_count - current_page_num > 2 %}
...
{{ contents.total_page_count }}
{% endif %}
{% endif %}
Page {{ current_page_num }} of {{ contents.total_page_count }}
{{ content.name }}
{%if content.blog_post_author %}
{{ content.blog_post_author.display_name }}
{% endif %}
{% set comments_number = content.comment_list|length %}
{% if comments_number == 1 %}
{% set comments_lable = "Comment" %}
{% else %}
{% set comments_lable = "Comments" %}
{% endif %}
{{ comments_number }} {{ comments_lable }}
{{ content.publish_date_local_time.strftime('%B') }} {{ content.publish_date_local_time.strftime('%d') }}, {{ content.publish_date_local_time.strftime('%Y') }}
{{ content.post_body }}
Written by {{ content.blog_post_author.display_name }}
{{ content.blog_post_author.bio }}
{% if content.blog_post_author.has_social_profiles %} {% endif %}
{% blog_comments "blog_comments" overrideable=False, cell=False, cells='[]', root=False, row=False, label='Blog Comments' %}


