加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
config.py 1.34 KB
一键复制 编辑 原始数据 按行查看 历史
Jone.x 提交于 2017-01-06 18:02 . entry增加基于git的版本记录支持
# coding=utf-8
import gettext
locale_path = './locale/'
zh_trans = gettext.translation('lang', locale_path, languages=['cn'])
en_trans = gettext.translation('lang', locale_path, languages=['en'])
zh_trans.install()
name = u'MarkDown Doc'
home = 'https://github.com/JoneXiong/YouMd'
author = 'YouMd'
disqus = '"xxx"'
template_dir = 'template'
entry_dir = 'raw/entry'
page_dir = 'raw/page'
tweet_dir = 'raw/tweet'
static_dir = './static'
url_suffix = '.html'
raw_suffix = '.md'
index_url = '/'
entry_url = '/blog'
tweet_url = '/tweet'
archive_url = '/archive'
about_url = '/about.html'
subscribe_url = '/atom.xml'
error_url = '/error.html'
favicon_url = '/favicon.ico'
search_url = '/search'
static_url = '/static'
raw_url = '/raw'
update_url = '/update'
other_url = '(.+)'
start = 1
limit = 5
pagination = 15
search_holder = 'search_holder'
time_fmt = '%Y-%m-%d %H:%M:%S'
date_fmt = '%Y-%m-%d'
url_fmt = 'yyyy/mm/dd'
url_date_fmt = '%Y/%m/%d'
recently = 10
ranks = 10
subscribe = 10
cache = False
debug = True
use_comment = True
backend_md = False
admin_pwd = 'admin'
admin_user = 'admin'
multi_user = []
def cur_user():
from mole.sessions import get_current_session
session = get_current_session()
return session.get('username', '')
private_store = 'private.data'
private_url = '/private_raw'
upload_path = './upload'
file_url = '/files'
use_git = False
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化