crappy-reverie/index.html

54 lines
1.5 KiB
HTML
Raw Normal View History

2019-02-12 19:04:04 +00:00
---
layout: default
---
{%- include custom-index-upper.html -%}
2023-04-18 13:36:55 +00:00
{% if site.index_blog == true %}
2019-02-12 19:04:04 +00:00
<div class="posts">
2019-07-28 09:28:00 +00:00
{% for post in paginator.posts %}
2019-02-12 19:04:04 +00:00
<article class="post">
2019-08-08 06:51:01 +00:00
<a href="{{ site.baseurl }}{{ post.url }}">
<h1>{{ post.title }}</h1>
2019-02-12 19:04:04 +00:00
2019-08-08 06:51:01 +00:00
<div>
<p class="post_date">{{ post.date | date: "%B %e, %Y" }}</p>
</div>
</a>
2019-02-12 19:04:04 +00:00
<div class="entry">
{{ post.excerpt }}
</div>
<a href="{{ site.baseurl }}{{ post.url }}" class="read-more">Read More</a>
</article>
{% endfor %}
2019-07-28 09:28:00 +00:00
<!-- pagination -->
{% if paginator.total_pages > 1 %}
<div class="pagination">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">&laquo; Prev</a>
{% else %}
<span>&laquo; Prev</span>
{% endif %}
{% for page in (1..paginator.total_pages) %}
{% if page == paginator.page %}
<span class="webjeda">{{ page }}</span>
{% elsif page == 1 %}
2019-08-15 06:45:08 +00:00
<a href="{{ '/' | prepend: site.baseurl | replace: '//', '/' }}">{{ page }}</a>
2019-07-28 09:28:00 +00:00
{% else %}
<a href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a>
{% endif %}
{% endfor %}
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Next &raquo;</a>
{% else %}
<span>Next &raquo;</span>
{% endif %}
</div>
{% endif %}
2019-02-12 19:04:04 +00:00
</div>
2023-04-18 13:36:55 +00:00
{% endif %}