title: Jekyll — Change layout if page is a post?
body: <p>In a Jekyll layout, is there any way to detect if the page is a normal page or a post? I want to display post titles, but not page titles. Like this:</p>
  
  <pre><code>{% if page.is_post? %}
      &lt;h2&gt;{{ page.title }}&lt;/h2&gt;
  {% endif %}
  {{ content }}
  </code></pre>