Add reading time to archive layout and include icon

This commit is contained in:
Michael Rose
2016-03-22 22:28:12 -04:00
parent bf4bf6ed82
commit f029ce6e25
4 changed files with 15 additions and 2 deletions

View File

@@ -23,6 +23,7 @@
</div>
{% endif %}
<h2 class="archive__item-title" itemprop="headline">{% if post.id %}{{ post.title | markdownify | remove: "<p>" | remove: "</p>" }}{% else %}{{ post.title }}{% endif %}</h2>
{% if site.read_time and post.read_time %}<p class="page__meta"><i class="fa fa-clock-o" aria-hidden="true"></i> {% include read-time.html %}</p>{% endif %}
{% if post.excerpt %}<p class="archive__item-excerpt" itemprop="description">{{ post.excerpt | markdownify | strip_html | truncate: 160 }}</p>{% endif %}
</article>
</a>