add titleless posts and a menu in the footer

This commit is contained in:
Pat Dryburgh
2018-08-12 09:55:37 -07:00
parent 11adcb038a
commit ed34b49645
13 changed files with 104 additions and 77 deletions

View File

@ -0,0 +1,26 @@
{% capture excerpt %}
{{ post.excerpt | replace: "<p>", "" | replace: "</p>", "" }}
{% endcapture %}
{% assign excerpt_length = excerpt | size %}
<li>
<a href="{{ post.url | absolute_url }}" class="post-link">
{% unless post.title == "" %}
<span class="post-title">
{{ post.title }}
</span>
{% else %}
<span class="post-title">
{% if excerpt_length > 140 %}
{{ excerpt | truncatewords: 12, '…' }}
{% else %}
{{ excerpt }}
{% endif %}
</span>
{% endunless %}
<span class="post-date">
{{ post.date | date: "%b %-d, '%y" }}
</span>
</a>
</li>