{% include page_start.liquid %}
{% include page_content.liquid %}
{% include breadcrumbs.liquid title=page.title permalink=page.url %}
{% for data in paginator.posts %}
	{% if site.xaymar.index.excerpt.enabled %}
		{% assign content=data.excerpt | strip_html | normalize_whitespace | truncatewords: site.xaymar.index.excerpt.length %}
	{% else %}
		{% assign content=data.content %}
	{% endif %}
	{% include article.liquid type=post index=true title=data.title content=content permalink=data.url categories=data.categories tags=data.tags %}
{% endfor %}
{% if paginator.total_pages > 1 %}
	<ul class="pager">
		{% if paginator.previous_page %}
		<li class="previous">
			<a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">&larr; Newer Posts</a>
		</li>
		{% endif %}
		{% if paginator.next_page %}
		<li class="next">
			<a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Older Posts &rarr;</a>
		</li>
		{% endif %}
	</ul>
{% endif %}
{% include page_end.liquid %}
