You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.2 KiB
HTML
44 lines
1.2 KiB
HTML
2 years ago
|
---
|
||
|
layout: default
|
||
|
title: Home
|
||
|
---
|
||
|
|
||
|
<div class="posts">
|
||
|
{% for post in paginator.posts %}
|
||
|
{% unless post.layout == "page" or post.layout == "default" %}
|
||
|
<div class="post">
|
||
|
<h1 class="post-title">
|
||
|
<a href="{{ post.url }}">
|
||
|
{{ post.title }}
|
||
|
</a>
|
||
|
</h1>
|
||
|
|
||
|
<span class="post-date">{{ post.date | date_to_string }}</span>
|
||
|
{% if post.excerpt == post.content %}
|
||
|
{{ post.content }}
|
||
|
{% else %}
|
||
|
<br>
|
||
|
{{ post.excerpt }} <a href="{{ post.url }}">Read Full Post...</a>
|
||
|
{% endif %}
|
||
|
</div>
|
||
|
{% endunless %}
|
||
|
{% endfor %}
|
||
|
</div>
|
||
|
|
||
|
<div class="pagination">
|
||
|
{% if paginator.next_page %}
|
||
|
<a class="pagination-item older" href="{{ site.baseurl }}page{{paginator.next_page}}">Older</a>
|
||
|
{% else %}
|
||
|
<span class="pagination-item older">Older</span>
|
||
|
{% endif %}
|
||
|
{% if paginator.previous_page %}
|
||
|
{% if paginator.page == 2 %}
|
||
|
<a class="pagination-item newer" href="{{ site.baseurl }}">Newer</a>
|
||
|
{% else %}
|
||
|
<a class="pagination-item newer" href="{{ site.baseurl }}page{{paginator.previous_page}}">Newer</a>
|
||
|
{% endif %}
|
||
|
{% else %}
|
||
|
<span class="pagination-item newer">Newer</span>
|
||
|
{% endif %}
|
||
|
</div>
|