Exemplo n.º 1
0
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))
Exemplo n.º 2
0
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))