D3
OG
Old school D3 from simpler times
All examples
By author
By category
About
claws
Full window
Github gist
Generate excerpt content in Jekyll for use on Gihub pages. This extracts the post content within the '<!-- excerpt start -->' and '<!-- excerpt end -->' comment tags.
--- 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>