示例#1
0
def generate_category_pages():
    """
    Generate "/category/<string>" pages
    """
    for c in _categories:
        category_page_dir = os.path.join(_deploy_dir, 'category', c)
        os.makedirs(category_page_dir)
        with open(os.path.join(category_page_dir, 'index.html'), 'w', encoding='utf-8') as f:
            f.write(handler.category(c))
示例#2
0
def generate_category_pages():
    """
    Generate "/category/<string>" pages
    """
    for c in _categories:
        category_page_dir = os.path.join(_deploy_dir, 'category', c)
        os.makedirs(category_page_dir)
        with open(os.path.join(category_page_dir, 'index.html'), 'w', encoding='utf-8') as f:
            f.write(handler.category(c))
示例#3
0
文件: app.py 项目: cuteluo1983/blog-a
def category(c):
    return handler.category(c)
示例#4
0
文件: app.py 项目: BlogTANG/blog-a
def category(c):
    return handler.category(c)