def list_posts(args): blogofile.config.init_interactive(args) from blogofile import plugin, filter plugin.init_plugins() filter.init_filters() load_env() posts = post.parse_posts("_posts") p_num = len(posts) for p in post.parse_posts("_posts"): print(("{0} | {1} | {2} | {3}".format(str(p_num).rjust(4), p.date.strftime("%Y/%m/%d"), p.title, p.filename))) p_num -= 1
def list_posts(args): blogofile.config.init_interactive(args) from blogofile import plugin, filter plugin.init_plugins() filter.init_filters() load_env() posts = post.parse_posts("_posts") p_num = len(posts) for p in post.parse_posts("_posts"): print(("{0} | {1} | {2} | {3}".format( str(p_num).rjust(4), p.date.strftime("%Y/%m/%d"), p.title, p.filename))) p_num -= 1
def list_posts(args): blogofile.config.init_interactive(args) from blogofile import plugin, filter plugin.init_plugins() filter.init_filters() load_env() posts = post.parse_posts("_posts") p_num = len(posts) for p in posts: print("{0:>4} | {1:%Y/%m/%d} | {2} | {3}".format( p_num, p.date, p.title, p.filename)) p_num -= 1
def list_posts(args): blogofobe.config.init_interactive(args) from blogofobe import plugin, filter plugin.init_plugins() filter.init_filters() load_env() posts = post.parse_posts("_posts") p_num = len(posts) for p in posts: print( "{0:>4} | {1:%Y/%m/%d} | {2} | {3}" .format(p_num, p.date, p.title, p.filename)) p_num -= 1