Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add options to list private and published posts. #2337

Merged
merged 3 commits into from May 6, 2016
Merged

Conversation

punchagan
Copy link
Member

@punchagan punchagan commented May 6, 2016

For the sake of completeness, nikola status should also be able to list private and published posts.

print("Private: '{0}' ({1}; source: {2})".format(post.meta('title'), post.permalink(), post.source_path))
if options['list_published']:
for post in posts_published:
print("Published: '{0}' ({1}; source: {2})".format(post.meta('title'), post.permalink(), post.source_path))
print("{0} posts in total, {1} scheduled, and {2} drafts.".format(posts_count, len(posts_scheduled), len(posts_drafts)))
Copy link
Member

@Kwpolska Kwpolska May 6, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add it to the count there

@punchagan
Copy link
Member Author

@punchagan punchagan commented May 6, 2016

Done.

@Kwpolska Kwpolska merged commit 0069bc7 into master May 6, 2016
4 checks passed
@Kwpolska
Copy link
Member

@Kwpolska Kwpolska commented May 6, 2016

Thanks!

(I assume you did all the necessary testing.)

@Kwpolska Kwpolska deleted the add-status-options branch May 6, 2016
@punchagan
Copy link
Member Author

@punchagan punchagan commented May 6, 2016

I have.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants