diff --git a/feed.json b/feed.json
index e7c682f..0080807 100644
--- a/feed.json
+++ b/feed.json
@@ -26,7 +26,7 @@ layout:
},
{% endif %}
"items": [
- {% assign posts = site.posts | where_exp: "post", "post.draft != true" %}
+ {% assign posts = site.posts | where_exp: "post", "post.draft != true" | where_exp: "post", "post.categories contains 'blog'" %}
{% for post in posts limit: 20 %}
{
"id": {{ post.id | absolute_url | jsonify }},
diff --git a/feed.photos.json b/feed.photos.json
index 2a35b33..ab0dda1 100644
--- a/feed.photos.json
+++ b/feed.photos.json
@@ -26,8 +26,8 @@ layout:
},
{% endif %}
"items": [
- {% assign posts = site.posts | where_exp: "post", "post.draft != true" %}
- {% for post in site.categories.photos limit: 20 %}
+ {% assign posts = site.posts | where_exp: "post", "post.draft != true" | where_exp: "post", "post.categories contains 'photos'" %}
+ {% for post in posts limit: 20 %}
{
"id": {{ post.id | absolute_url | jsonify }},
"url": {{ post.url | absolute_url | jsonify }},
diff --git a/feed.xml b/feed.xml
index 4c37c5b..b9bc71d 100644
--- a/feed.xml
+++ b/feed.xml
@@ -15,7 +15,7 @@ layout:
Octopress
- {% for post in site.posts limit: 20 %}
+ {% for post in site.categories.blog limit: 20 %}