<?xml version="1.0"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>engel</title>
    <link>http://engel.uk.to</link>
    <atom:link href="http://engel.uk.to/rss.xml" rel="self" type="application/rss+xml" />
    <language>en-US</language>
    <pubDate>Sun, 29 Jan 2012 09:41:24 -0800</pubDate>
    <lastBuildDate>Sun, 29 Jan 2012 09:41:24 -0800</lastBuildDate>

    
    <item>
      <title>Post excerpts in Jekyll</title>
      <link>http://engel.uk.to/2012/01/21/jekyll-excerpts.html</link>
      <pubDate>Sat, 21 Jan 2012 00:00:00 -0800</pubDate>
      <author>engel@engel.uk.to (Hans Engel)</author>
      <guid>http://engel.uk.to/2012/01/21/jekyll-excerpts.html</guid>
      <description>&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;
</description>
    </item>
    

  </channel>
</rss>

