-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpelicanconf.py
73 lines (61 loc) · 1.69 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
62
63
64
65
66
67
68
69
70
71
72
73
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
# Basic settings
AUTHOR = u'crazygit'
SITENAME = u'Wise Turtles'
SITEURL = ''
USE_FOLDER_AS_CATEGORY = True
DEFAULT_CATEGORY = u'其它'
DEFAULT_DATE_FORMAT = '%Y-%m-%d'
DISPLAY_PAGES_ON_MENU = True
DISPLAY_CATEGORIES_ON_MENU = False
DEFAULT_DATE = "fs"
# path-specific metadata
EXTRA_PATH_METADATA = {
'extra/CNAME': {'path': 'CNAME'},
'extra/robots.txt': {'path': 'robots.txt'},
}
# static paths will be copied without parsing their contents
STATIC_PATHS = [
'extra',
]
PATH = 'content'
PAGE_PATHS = ['pages']
TIMEZONE = 'Asia/Chongqing'
TYPOGRIFY = True
DEFAULT_LANG = u'zh'
# URL settings
ARTICLE_URL = 'posts/{slug}.html'
ARTICLE_SAVE_AS = 'posts/{slug}.html'
PAGE_URL = '{slug}.html'
PAGE_SAVE_AS = '{slug}.html'
ARCHIVES_URL = "archives.html"
# Tag cloud
TAG_CLOUD_STEPS = 4
TAG_CLOUD_MAX_ITEMS = 100
# Theme
THEME = "theme"
# code highlight style, one of below
# [default emacs friendly colorful autumn murphy manni monokai perldoc pastie borland trac native fruity bw vs tango]
PYGMENT_STYLE = "emacs"
# Feed generation is usually not desired when developing
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
# Blogroll
LINKS = (
("Travis-ci", "https://travis-ci.org/"),
("Wercker", "http://wercker.com/"),
("Cloudbees", "http://www.cloudbees.com"),
("Pelican", "http://docs.getpelican.com/"),
("Jinja", "http://jinja.pocoo.org/"),
)
# Pagination
DEFAULT_PAGINATION = 10
# Uncomment following line if you want document-relative URLs when developing
# RELATIVE_URLS = True
# Disqus
DISQUS_SITENAME = "wiseturtles"