def categories(count): """Query about the recent tags.""" categories = posts.getCategories() for cate_group in group_iterate(categories[:count], 5): print(''.join(pad_string(s, 20) for s in cate_group))
def tags(count): """Query about the recent tags.""" tags = PostManager(os.path.join(config.BLOG_ROOT, '_posts')).getTags() for tag_group in group_iterate(tags[:count], 5): print(''.join(pad_string(s, 20) for s in tag_group))