bune.city/index.html

36 lines
1.1 KiB
HTML

---
layout: default
title: "bune.city - Home"
pagination:
enabled: true
---
{% include header.html %}
<h1 id='logo'>{{ site.title }}</h1>
<main>
<div id='posts'>
{% for post in paginator.posts %}
<div class='post'>
<h2><a href='{{ post.url }}'>{{ post.title }}</a></h2>
<div id='post-info'>
<i class='material-icons'>access_time</i> {{ post.date | date_to_string: "ordinal" }}
<i class='material-icons'>group_work</i>
{{ " " }}{%- for category in post.categories -%}
<a href='/categories/{{ category }}'>{{ category }}</a>
{%- unless category == post.categories.last %}, {% endunless %}
{%- endfor %} <br>
</div>
<div class='post-excerpt'>
<p>{{ post.summary | default: post.excerpt }}</p>
</div>
</div>
{% endfor %}
{%- if paginator.total_pages > 1 %}
<div id='pagination'>
<a {%- if paginator.previous_page %} href='{{ paginator.previous_page_path | absolute_url }}' {%- endif %}>Newer</a>
Page {{ paginator.page }} of {{ paginator.total_pages }}
<a {%- if paginator.next_page %} href='{{ paginator.next_page_path | absolute_url }}' {%- endif %}>Older</a>
</div>
{%- endif %}
</div>
</main>