title: How to reference a post's whole content (including layout) in Jekyll/Liquid
body: <p>I am using Jekyll (3.0+) and I have my <code>index.html</code>:</p>
  
  <pre><code>---
  layout: mylayout
  ---
  &lt;div&gt;
    {{ site.posts[0].content }}
  &lt;/div&gt;
  </code></pre>
  
  <p>As you can see I am trying to display only the first post and <code>_layouts/mylayout.html</code> is:</p>
  
  <pre><code>&lt;article itemtype="http://schema.org/BlogPosting"&gt;
    &lt;header&gt;
      &lt;h1&gt;{{ page.title }}&lt;/h1&gt;
    &lt;/header&gt;
    &lt;div&gt;
      {{ content }}
    &lt;/div&gt;
  &lt;/article&gt;
  </code></pre>
  
  <h3>The layout is not included</h3>
  
  <p>The problem is that I cannot see the wrapping structure of <code>mylayout.html</code>, I can see just the content markdown translation! So, I would have expected:</p>
  
  <pre><code>&lt;article itemtype="http://schema.org/BlogPosting"&gt;
    &lt;header&gt;
      &lt;h1&gt;Page title&lt;/h1&gt;
    &lt;/header&gt;
    &lt;div&gt;
      &lt;section&gt;My post paragraph&lt;/section&gt;
      &lt;p&gt;Hello, this is my post.&lt;/p&gt;
    &lt;/div&gt;
  &lt;/article&gt;
  </code></pre>
  
  <p>But I got this:</p>
  
  <pre><code>&lt;div&gt;
    &lt;section&gt;My post paragraph&lt;/section&gt;
    &lt;p&gt;Hello, this is my post.&lt;/p&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>How can I refer to the whole page?</p>