title: Jekyll Github pages how to hide a post
body: <p>I am using jekyll with Github pages for my website.
  I am trying to make some posts not visible in the home but they can be linked from another post.
  In the frontmatter I tryed to add a field visible like this:</p>
  
  <pre><code>---
  layout: post
  title: 
  excerpt: 
  visible:1
  ---
  </code></pre>
  
  <p>And then in the index.html file I did a if check:</p>
  
  <pre><code>&lt;div class="posts"&gt;
    {% for post in paginator.posts %}
    {% if post.visible== 1  %}
  
    &lt;div class="post"&gt;
      &lt;h1&gt;
        &lt;a href="{{ post.url }}"&gt;
          {{ post.title }}
        &lt;/a&gt;
      &lt;/h1&gt;
  
      &lt;span class="post-date"&gt;{{ post.date | date_to_string }}&lt;/span&gt;
          &lt;a class="subtitle" href="{{ post.url }}"&gt;
             {{ post.excerpt }}
          &lt;/a&gt;
        &lt;/a&gt;
    &lt;/div&gt;
    {% endif %}
    {% endfor %}
  &lt;/div&gt;
  </code></pre>
  
  <p>The idea is that when I set 0 in the visible field, the post won't be visible in the home. Unfortanely this is not working, do you have any hints? Thanks</p>