title: Truncate a post.excerpt
body: <p>I am trying to truncate a <code>post.excerpt</code>.</p>
  
  <p>Actual code is <code>&lt;%- post.excerpt || post.content%&gt;</code> </p>
  
  <p>The above shows all of the intro text of a blogpost.</p>
  
  <p>Now I want to truncate that intro text to 25 characters length.</p>
  
  <p>The truncate code is like in this example: </p>
  
  <pre><code>&lt;%- truncate('And they found that many people were sleeping better.', {length: 25, omission: '... (continued)'}) %&gt;`
  </code></pre>
  
  <p>Now to combine that, I came up with: </p>
  
  <pre><code>&lt;%- truncate((post.excerpt), {length: 25, omission: '... (continued)'}) || post.content%&gt; 
  </code></pre>
  
  <p>But that did not work, how to make truncating work for my needs?</p>
  
  <p>Full code here...</p>
  
  <pre><code>&lt;section class="article typo"&gt;
      &lt;%- post.excerpt || post.content %&gt;
      &lt;% if (post.excerpt) { %&gt;
        &lt;div class="readmore"&gt;
            &lt;a href="&lt;%- url_for(post.path) %&gt;"&gt;Read More&lt;/a&gt;
        &lt;/div&gt;
      &lt;% } %&gt;
  </code></pre>