-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpelicanconf.py
69 lines (55 loc) · 1.58 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
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
AUTHOR = u'Staff'
SITENAME = u'LeafLabs'
SITEURL = 'http://leaflabs.com'
TIMEZONE = 'UTC'
DATE_FORMATS = { 'en': '%A, %B %d, %Y', }
# DO NOT set DEFAULT_DATE to 'fs'; git will not track created or last modified
# timestamps correctly
DEFAULT_LANG = u'en'
DEFAULT_PAGINATION = 6
ARTICLE_URL = '/{date:%Y}/{date:%m}/{slug}/'
ARTICLE_SAVE_AS = '{date:%Y}/{date:%m}/{slug}/index.html'
ARTICLE_LANG_URL = '/{lang}/{date:%Y}/{date:%m}/{slug}/'
ARTICLE_LANG_SAVE_AS = '{lang}/{date:%Y}/{date:%m}/{slug}/index.html'
PAGE_URL = '{slug}/'
PAGE_SAVE_AS = '{slug}/index.html'
PAGE_LANG_URL = '{lang}/{slug}/'
PAGE_LANG_SAVE_AS = '{lang}/{slug}/index.html'
INDEX_SAVE_AS = 'blog/index.html'
ARCHIVES_SAVE_AS = 'blog/archives/index.html'
#AUTHOR_SAVE_AS = False
#CATEGORY_SAVE_AS = False
#TAG_SAVE_AS = False
PATH = '.'
ARTICLE_DIR = ('posts')
PAGE_DIR = ('pages')
STATIC_PATHS = ['static/images', 'robots.txt']
EXTRA_PATH_METADATA = {
'robots.txt': {'path': 'robots.txt'},
}
TEMPLATE_PAGES = {'home.html': 'index.html',
'50x.html': '50x.html',
'404.html': '404.html',
}
DIRECT_TEMPLATES = ('index', 'archives')
FEED_ALL_RSS = 'blog/feed/index.html'
FEED_MAX_ITEMS = '20'
THEME = "leaflabs_theme"
THEME_STATIC_PATHS = ['style', ]
MARKUP = ('rst', 'md', 'html')
PLUGINS=['sitemap',]
SITEMAP = {
'format': 'xml',
'priorities': {
'articles': 0.5,
'indexes': 0.5,
'pages': 0.7
},
'changefreqs': {
'articles': 'monthly',
'indexes': 'daily',
'pages': 'monthly'
}
}