layout | title |
---|---|
post |
Jekyll Excerpts |
This text becomes the excerpt text displayed on the main page
This test is not displayed.
layout | title |
---|---|
post |
Jekyll Excerpts |
This text becomes the excerpt text displayed on the main page
This test is not displayed.
--- | |
layout: default | |
title: "Main Page" | |
--- | |
<h2>Recent Posts</h2> | |
<div class="posts"> | |
{% for post in site.posts limit:5 %} | |
<div class="post"> | |
<div class="title"><a href="{{ post.url }}">{{post.title }}</a></div> | |
<div class="date">Posted on {{ post.date | date: "%B %d %Y" }}</div> | |
<div class="excerpt">{{ post.content | split:'<!-- excerpt end -->' | first | split:'<!-- excerpt start -->' | last }}</div> | |
<p><a href="{{post.url}}">Read more »</a></p> | |
</div> | |
<hr /> | |
{% endfor %} | |
</div> |