예제 #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)