Permalink
Browse files

Show only posts of blog category on index without pagination

  • Loading branch information...
ravpacheco committed May 7, 2017
1 parent 8440d3e commit bad73bb8ea42f66b7e06426d567ab9c6930c50e9
Showing with 4 additions and 2 deletions.
  1. +4 −2 blog/index.html
View
@@ -19,8 +19,10 @@
{% include pagination.html%}
{% else %}
{% for post in site.posts %}
- {% if post.hidden != true %}
- {% include blog-post.html %}
+ {% if post.category == 'blog' %}
+ {% if post.hidden != true %}
+ {% include blog-post.html %}
+ {% endif %}
{% endif %}
{% endfor %}
{% endif %}

0 comments on commit bad73bb

Please sign in to comment.