1
0
Fork 0
jekyll-diary/index.html

41 lines
1.4 KiB
HTML

---
layout: default
title: index
---
{% capture paginat %}
{% assign pagepostcount = paginator.posts | size %}
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path }}" class="btn previous">Newer</a>
{% else %}
<a class="btn previous disabled">Newer</a>
{% endif %}
<a href="all" title="Page {{ paginator.page }} of {{ paginator.total_pages }}" class="page_number">{{ paginator.page | minus: 1 | times: paginator.per_page | plus: 1 }} - {{ paginator.page | minus: 1 | times: paginator.per_page | plus: pagepostcount }} of {{ paginator.total_posts }}</a><!--
<a href="all" class="page_number">Page {{ paginator.page }} of {{ paginator.total_pages }}</a> -->
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path }}" class="btn next">Older</a>
{% else %}
<a class="btn next disabled">Older</a>
{% endif %}
{% endcapture %}
<header>
<h1>{{ site.title }}</h1>
<h2>{{ site.subtitle }}</h2>
<nav>
{{ paginat }}
</nav>
</header>
<main>
{% for post in paginator.posts %}
<article>
<h1 title="Posted on {{ post.date | date: "%B %d, %Y" }}">{{ post.date | date: "<span>%d</span><span>%B</span><span>%Y</span>" }}<a href="{{ post.url }}">#{{ post.title }}</a></h1><!-- post.title || -->
<div class="content">
{{ post.content }}
</div>
</article>
{% endfor %}
</main>
<footer>
<nav>
{{ paginat }}
</nav>
</footer>