<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">

 <title>engel</title>
 <link href="http://engel.uk.to/atom.xml" rel="self"/>
 <link href="http://engel.uk.to/"/>
 <updated>2012-01-29T09:41:24-08:00</updated>
 <id>http://engel.uk.to/</id>
 <author>
   <name>Hans Engel</name>
   <email>engel@engel.uk.to</email>
 </author>

 
 <entry>
   <title>Post excerpts in Jekyll</title>
   <link href="http://engel.uk.to/2012/01/21/jekyll-excerpts.html"/>
   <updated>2012-01-21T00:00:00-08:00</updated>
   <id>http://engel.uk.to/2012/01/21/jekyll-excerpts</id>
   <content type="html">&lt;p&gt;There's a &lt;a href=&quot;http://www.jacquesf.com/2011/03/creating-excerpts-in-jekyll-with-wordpress-style-more-html-comments/&quot;&gt;fairly simple method&lt;/a&gt; for creating WordPress-like post excerpts in Jekyll using a &lt;code&gt;&amp;lt;!-- more --&amp;gt;&lt;/code&gt; tag, but unfortunately it requires the installation of a Jekyll plugin, a feature unavailable on a GitHub-hosted Jekyll instance.&lt;/p&gt;

&lt;p&gt;What's a bored geek like me to do? Find another way! &lt;!-- more --&gt; The exact same excerpt functionality linked to earlier can be replicated by composing a few &lt;a href=&quot;https://github.com/Shopify/liquid/wiki/Liquid-for-Designers&quot;&gt;Liquid filters&lt;/a&gt; in the site layout code, like so:&lt;/p&gt;

&lt;pre&gt;&amp;#123;{ post.content | split: '&lt;!-- more --&gt;' | first }}&lt;/pre&gt;


&lt;p&gt;This little bit of code will output the content of a post until it sees a &lt;code&gt;&amp;lt;!-- more --&amp;gt;&lt;/code&gt; tag inside the post content. Just insert the &lt;code&gt;&amp;lt;!-- more --&amp;gt;&lt;/code&gt; tag into your posts wherever you'd like them to be cut off.&lt;/p&gt;

&lt;p&gt;You can see this snippet in action in my &lt;a href=&quot;/&quot;&gt;site index template&lt;/a&gt;.&lt;/p&gt;
</content>
 </entry>
 

</feed>

