代码拉取完成,页面将自动刷新
# 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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。