title: How can I tell Jekyll not to generate pages that match some kind of pattern?
body: <p>I have a Jekyll website but some posts are still being worked on so I did not want them being rendered until they're ready.</p>
  
  <p>I've managed to alter the pages that generate indexes and pagination so that these don't get included - I've changed the iterator in a liquid template so that it only includes posts that don't include a tag called <code>"invisible"</code>:</p>
  
  <pre><code>{% for post in paginator.posts %}
    {% unless post.tags contains "invisible" %}
    // include post in paginator
  </code></pre>
  
  <p>But I don't really know how I can achieve a similar effect with regards to the actual post pages rather than entries in the paginator.</p>
  
  <p>In short, what I want to do is to <strong>selectively stop some posts from being rendered as html based on some attribute like the presence of some tag</strong>.</p>
  
  <p>I know that one approach for this is to place these under <code>_drafts</code> rather than <code>_posts</code> but I did not want to go down that route if I can help it.</p>