cracker/_layouts/home.html

24 lines
616 B
HTML

---
layout: default
---
{%- if site.posts.size > 0 -%}
<h1 class="post-list-heading">{{ page.list_title | default: "Posts" }}</h1>
<ul class="post-list">
{%- for post in site.posts limit:5 -%}
<li>
<hr />
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
<span class="post-meta">{{ post.date | date: date_format }}</span>
<h3>
<a class="post-link" href="{{ post.url | relative_url }}">
{{ post.title | escape }}
</a>
</h3>
{%- if site.show_excerpts -%}
{{ post.excerpt }}
{%- endif -%}
</li>
{%- endfor -%}
</ul>
{%- endif -%}