April 22, 2017
Jekyll follows liquid templating and allows a greater customization of filtering pages, tags, posts and categories.
To filter a list of post based on one category:
for post in site.posts
if post.categories contains 'Travel'
<a href="#">post.title</a>
endif
endfor
For the tag, replace category with tag.
for post in site.posts
if post.tags contains 'Travel'
<a href="#">post.title</a>
endif
endfor
You can also use If, Else or Unless instead of contains. More about IF/Else condition checking in liquid templating here