pages/index.html

48 lines
1.4 KiB
HTML
Raw Normal View History

---
layout: default
title: The Paper Pilot
nocard: true
---
{% for post in site.posts %}
<div class="cite" style="background: #fff;border-radius: 2px;box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);">
<a href="{{ post.url }}">
<div class="card">
<h1>{{ post.title }}</h1>
{{ post.content }}
</div>
</a>
<ul class="inline" style="display: inline-block; margin-bottom: 1em;">
{{ post.date | date: '%B %d, %Y' }}
{% for tag in post.tags %}
<li><a href="/tags/#{{ tag | slugify }}"> {{ tag }} </a></li>
{% endfor %}
</ul>
</div>
{% endfor %}
{% if paginator.total_pages > 1 %}
<div class="card">
{% 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 %}
<em>{{ page }}</em>
{% elsif page == 1 %}
<a href="{{ paginator.previous_page_path | 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 &raquo;</a>
{% else %}
<span>Next &raquo;</span>
{% endif %}
</div>
{% endif %}