Created
November 8, 2015 16:26
-
-
Save toanalien/050c56c4cd53eec3dfa1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% for post in site.posts limit:10 %} | |
<div class="post-preview"> | |
<h2><a href="{{ post.url }}">{{ post.title }}</a></h2> | |
<div class="post-date">{{ post.date | date: "%B %d, %Y" }}</div> | |
{{ post.content | split:'<!--break-->' | first }} | |
{% if post.content contains '<!--break-->' %} | |
<a href="{{ post.url }}">read more</a> | |
{% endif %} | |
</div> | |
<hr> | |
{% endfor %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment