Skip to content
This repository has been archived by the owner on Sep 28, 2021. It is now read-only.

Commit

Permalink
Tidy up a bit, give a hint after --quick-start
Browse files Browse the repository at this point in the history
  • Loading branch information
Oz Tiram committed Sep 21, 2018
1 parent 2cfdcce commit dd47f46
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion blogit/blogit.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,8 @@ def _get_last_entries(db, qty):
# but we can't use mtimes for sorting. We'll need to add ptime for the
# database (publish time)
entries = [Entry(os.path.join(CONFIG['content_root'],
db.posts.get(doc_id=doc_id)['filename']), doc_id) for doc_id in doc_ids]
db.posts.get(doc_id=doc_id)['filename']), doc_id)
for doc_id in doc_ids]
# return _sort_entries(entries)[:qty]
entries.sort(key=operator.attrgetter('date'), reverse=True)
return entries[:qty], entries
Expand Down Expand Up @@ -482,6 +483,7 @@ def preview(): # pragma: no coverage
def quick_start(): # pragma: no coverage
path = resource_filename(Requirement.parse("blogit"), 'blogit/blogit-mir')
copy_tree(path, '.')
print("edit conf.py, create some pages and posts and run blogit --preview")


def publish(GITDIRECTORY=CONFIG['output_to']): # pragma: no coverage
Expand Down

0 comments on commit dd47f46

Please sign in to comment.