This repository has been archived by the owner on Aug 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pelicanconf.py
61 lines (51 loc) · 1.56 KB
/
pelicanconf.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = u'lichaoran'
SITENAME = u'WAAAGH!'
SITEURL = 'https://pkking.github.io'
STATIC_PATHS = ['images']
SITELOGO = '/images/waaagh.jpeg'
DEFAULT_DATE_FORMAT = '%Y-%m-%d'
PATH = 'content/'
TIMEZONE = 'Asia/Shanghai'
#DEFAULT_LANG = 'cn'
OUTPUT_PATH = 'pkking/'
ARTICLE_URL = 'posts/{date:%Y}/{date:%b}/{date:%d}/{slug}/'
ARTICLE_SAVE_AS = 'posts/{date:%Y}/{date:%b}/{date:%d}/{slug}/index.html'
#enable search
USE_FOLDER_AS_CATEGORY = True
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
DEFAULT_DATE = 'fs'
PAGE_PATHS = ['pages']
DISPLAY_PAGES_ON_MENU = True
DISPLAY_SEARCH_FORM = True
DELETE_OUTPUT_DIRECTORY = True
OUTPUT_RETENTION = [".git"]
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
# Theme
THEME = 'themes/Flex'
# DUOSHUO comment plugin
#DUOSHUO_SITENAME = u'waaagh'
DISQUS_SITENAME = 'lcrpkking'
# Cache
AUTORELOAD_IGNORE_CACHE = False #if in development set to True
LOAD_CONTENT_CACHE = False #if in development set to True
# Links
GITHUB_URL = u'https://github.com/pkking'
LINKS = (('GitHub', 'https://github.com/pkking'),)
# Social widget
#TWITTER_URL = u'https://twitter.com/li_chaoran'
#WEIBO_URL = u'http://weibo.com/lcrrrr'
SOCIAL = (('weibo','http://weibo.com/lcrrrr/'),
('twitter', 'https://twitter.com/li_chaoran'),)
DEFAULT_PAGINATION = 5
TAG_CLOUD_STEPS = 4
TAG_CLOUD_MAX_ITEMS = 200
# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True
# configuration for flex
PYGMENTS_STYLE = 'monokai'