Permalink
Browse files

Accept 'page' and 'pages' as post-list type values

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information...
1 parent 76b0433 commit da040b0fce69e987e080ff9c822682c7d1f4ad55 @Kwpolska Kwpolska committed Sep 10, 2016
Showing with 2 additions and 2 deletions.
  1. +2 −2 nikola/plugins/compile/rest/post_list.py
@@ -225,15 +225,15 @@ def _do_post_list(start=None, stop=None, reverse=False, tags=None, categories=No
# TODO: remove in v8
if all is not False:
timeline = [p for p in site.timeline]
- elif post_type == 'page':
+ elif post_type == 'page' or post_type == 'pages':
timeline = [p for p in site.timeline if not p.use_in_feeds]
elif post_type == 'all':
timeline = [p for p in site.timeline]
else: # post
timeline = [p for p in site.timeline if p.use_in_feeds]
# TODO: replaces all, uncomment in v8
- # if post_type == 'page':
+ # if post_type == 'page' or post_type == 'pages':
# timeline = [p for p in site.timeline if not p.use_in_feeds]
# elif post_type == 'all':
# timeline = [p for p in site.timeline]

0 comments on commit da040b0

Please sign in to comment.