50 lines
1.4 KiB
HTML
50 lines
1.4 KiB
HTML
---
|
|
layout: default
|
|
title: Blog
|
|
permalink: /blog/
|
|
---
|
|
|
|
<div class="post-index">
|
|
|
|
<div class="post-index__header">
|
|
<!-- future category nav will live here -->
|
|
</div>
|
|
|
|
<section class="post-index__body">
|
|
<!-- Loop though posts -->
|
|
{%- if site.posts.size > 0 -%}
|
|
<ul class="post-list text-length-md">
|
|
|
|
<!-- Post -->
|
|
{%- for post in site.posts -%}
|
|
<li class="post-list__item">
|
|
|
|
<!-- Post title -->
|
|
<h4 class="post-list__heading">
|
|
<a href="{{ post.url | relative_url }}" class="link-text-color">
|
|
{{ post.title | escape }}
|
|
</a>
|
|
</h4>
|
|
|
|
<!-- Post metadata -->
|
|
<span class="post-list__author">
|
|
<span class="visually-hidden">Author:</span>
|
|
{%- if site.data.authors[post.author] -%}
|
|
{{ site.data.authors[post.author].name}}
|
|
{%- else -%}
|
|
{{ post.author }}
|
|
{%- endif -%}
|
|
</span><!--
|
|
--><time class="post-list__date" datetime="{{ post.date | date_to_xmlschema }}">
|
|
{%- assign date_format = site.date_format -%}
|
|
{{ post.date | date: date_format }}</time>
|
|
|
|
</li>
|
|
{%- endfor -%}
|
|
|
|
</ul>
|
|
{%- endif -%}
|
|
</section>
|
|
|
|
</div>
|