--- layout: default --- {%- include custom-index-upper.html -%} {% if site.index_blog == true %} <div class="posts"> {% for post in paginator.posts %} <article class="post"> <a href="{{ site.baseurl }}{{ post.url }}"> <h1>{{ post.title }}</h1> <div> <p class="post_date">{{ post.date | date: "%B %e, %Y" }}</p> </div> </a> <div class="entry"> {{ post.excerpt }} </div> <a href="{{ site.baseurl }}{{ post.url }}" class="read-more">Read More</a> </article> {% endfor %} <!-- pagination --> {% if paginator.total_pages > 1 %} <div class="pagination"> {% if paginator.previous_page %} <a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">« Prev</a> {% else %} <span>« Prev</span> {% endif %} {% for page in (1..paginator.total_pages) %} {% if page == paginator.page %} <span class="webjeda">{{ page }}</span> {% elsif page == 1 %} <a href="{{ '/' | prepend: site.baseurl | replace: '//', '/' }}">{{ page }}</a> {% 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 »</a> {% else %} <span>Next »</span> {% endif %} </div> {% endif %} </div> {% endif %}