This repository has been archived on 2022-03-09. You can view files and clone it, but cannot push or open issues or pull requests.
minima-dark/_layouts/home.html

62 lines
1.7 KiB
HTML
Raw Normal View History

2021-06-08 05:49:45 +00:00
---
layout: default
---
<div class="home">
{%- if page.title -%}
<h1 class="page-heading">{{ page.title }}</h1>
{%- endif -%}
{{ content }}
{% if site.paginate %}
{% assign posts = paginator.posts %}
{% else %}
{% assign posts = site.posts %}
{% endif %}
{%- if posts.size > 0 -%}
{%- if page.list_title -%}
<h2 class="post-list-heading">{{ page.list_title }}</h2>
{%- endif -%}
<ul class="post-list">
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
{%- for post in posts -%}
<li>
<h3>
<a class="post-link" href="{{ post.url | relative_url }}">
{{ post.title | escape }}
</a>
</h3>
2021-06-08 16:45:24 +00:00
<b><span class="post-meta">{{ post.date | date: date_format }}</span></b>
2021-06-08 05:49:45 +00:00
{%- if site.show_excerpts -%}
2021-06-08 17:06:03 +00:00
<blockquote><p>{{ post.excerpt }}</p></blockquote>
2021-06-08 05:49:45 +00:00
{%- endif -%}
</li>
{%- endfor -%}
</ul>
{% if site.paginate %}
<div class="pager">
<ul class="pagination">
{%- if paginator.previous_page %}
<li><a href="{{ paginator.previous_page_path | relative_url }}" class="previous-page">{{ paginator.previous_page }}</a></li>
{%- else %}
<li><div class="pager-edge"></div></li>
{%- endif %}
<li><div class="current-page">{{ paginator.page }}</div></li>
{%- if paginator.next_page %}
<li><a href="{{ paginator.next_page_path | relative_url }}" class="next-page">{{ paginator.next_page }}</a></li>
{%- else %}
<li><div class="pager-edge"></div></li>
{%- endif %}
</ul>
</div>
{%- endif %}
{%- endif -%}
</div>