运行会报错
Closed this issue · 10 comments
qianmianyao commented
Site prefix: /
Source dir: /root/app/Maverick/test_src/
Build dir: ./test_dist/
Start clean...done.
Loading contents...
Traceback (most recent call last):
File "build.py", line 43, in <module>
main(sys.argv[1:])
File "build.py", line 39, in main
builder.build_all()
File "/root/app/Maverick/Maverick/Builder.py", line 142, in build_all
content = Content(content_path)
File "/root/app/Maverick/Maverick/Content.py", line 33, in __init__
self.meta = Metadata(yaml.safe_load(m.group(1)))
File "/root/app/Maverick/Maverick/Metadata.py", line 17, in __init__
self["date"] = moment.date(str(fr.get("date", ""))).locale(g_conf.locale)
File "/usr/local/lib/python3.6/site-packages/moment/core.py", line 67, in locale
self._date = pytz.timezone(zone).normalize(self._date)
File "/usr/local/lib/python3.6/site-packages/pytz/tzinfo.py", line 252, in normalize
offset = dt.tzinfo._utcoffset
AttributeError: 'StaticTzInfo' object has no attribute '_utcoffset'
Sent from PPHub
AlanDecode commented
检查文章日期格式,或者Python版本(至少3.5)
qianmianyao commented
qianmianyao commented
caddy作为web服务器
http://193.112.128.133:2015/
AlanDecode commented
config.py 里:
enable_jsdelivr = { "enabled": False, "repo": "" }
qianmianyao commented
qianmianyao commented
好啦
qianmianyao commented
请问可以设置中文吗
AlanDecode commented
qianmianyao commented
AlanDecode commented
这个要看主题如何提供的,Galileo主题和Kepler主题的中文选项都是 zh-CN