title: How do I create an IF ELSE statement if there are no Jekyll posts in a category?
body: <p>I have a FOR statement that outputs all posts of type <code>jobs</code>.</p>
  
  <pre><code>{% for post in site.categories.jobs %}
    &lt;article&gt;
      &lt;h3&gt;&lt;a href="{{ post.permalink }}"&gt;{{ post.title }}&lt;/a&gt;&lt;/h3&gt;
      &lt;p&gt;{{ post.summary }}&lt;/p&gt;
    &lt;/article&gt;
  {% endfor %}
  </code></pre>
  
  <p>But if there are no published posts in <code>jobs</code> I would like to display a "We're not hiring right now" message.</p>
  
  <p>Can you create an IF/ELSE statement to check for posts in a specific category?</p>