mediocre-blog/_layouts/home.html

24 lines
481 B
HTML
Raw Normal View History

---
layout: default
---
{%- if site.posts.size > 0 -%}
<ul id="posts-list">
{%- for post in site.posts -%}
<li>
<h2>
<a href="{{ post.url | relative_url }}">
{{ post.title | escape }}
</a>
</h2>
2018-09-06 16:19:29 +00:00
<span>{{ post.date | date: site.date_format }}</span>
{%- if post.updated %}
<span>(Updated {{ post.updated | date: site.date_format }})</span>
{% endif -%}
<p>{{ post.description }}</p>
</li>
{%- endfor -%}
</ul>
{%- endif -%}