44 lines
1.5 KiB
Plaintext
44 lines
1.5 KiB
Plaintext
{% include page_start.liquid %}
|
|
{% include page_content.liquid %}
|
|
{% include breadcrumbs.liquid title=page.title permalink=page.url %}
|
|
<div id="index">
|
|
{% 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 timestamp=data.date %}
|
|
{% endfor %}
|
|
</div>
|
|
{% if paginator.total_pages > 1 %}
|
|
<ul class="pager">
|
|
{% if paginator.previous_page %}
|
|
<li class="first">
|
|
<a href="{{ paginator.first_page_path | absolute_url }}" alt="Oldest Entries">«</a>
|
|
</li>
|
|
<li class="prev">
|
|
<a href="{{ paginator.previous_page_path | absolute_url }}" alt="Older Entries">←</a>
|
|
</li>
|
|
{% endif %}
|
|
|
|
{% if paginator.page_trail %}
|
|
{% for trail in paginator.page_trail %}
|
|
<li class="page{% if page.url == trail.path %} selected{% endif %}">
|
|
<a href="{{ trail.path | absolute_url }}">{{ trail.num }}</a>
|
|
</li>
|
|
{% endfor %}
|
|
{% endif %}
|
|
|
|
{% if paginator.next_page %}
|
|
<li class="next">
|
|
<a href="{{ paginator.next_page_path | absolute_url }}" alt="Newer Entries">→</a>
|
|
</li>
|
|
<li class="last">
|
|
<a href="{{ paginator.last_page_path | absolute_url }}" alt="Newest Entries">»</a>
|
|
</li>
|
|
{% endif %}
|
|
</ul>
|
|
{% endif %}
|
|
{% include page_end.liquid %}
|