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)))

This comment has been minimized.

@Kwpolska

Kwpolska May 6, 2016
Member

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
4 checks passed
continuous-integration/appveyor/branch AppVeyor build succeeded
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
@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
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.