website/index.html
2018-07-31 04:59:25 -07:00

30 lines
863 B
HTML

---
layout: default
---
<div class="home">
{% for post in site.posts %}
<div class="post">
<h2>
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
</h2>
<span class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</span>
<div class="post-content-truncate">
{% if post.content contains "<!-- more -->" %}
{{ post.content | split:"<!-- more -->" | first % }}
{% else %}
{{ post.content | strip_html | truncatewords:100 }}
{% endif %}
</div>
<a class="post-read-more" href="{{ post.url | prepend: site.baseurl }}">Read More &rarr;</a>
</div>
{% else %}
<p>Nothing to see here! Come back later. :)</p>
{% endfor %}
<a href="{{ "/feed.xml" | prepend: site.baseurl }}"><img src="{{ "/img/feed-icon-14x14.png" | prepend: site.baseurl }}"></a>
</div>