-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpelicanconf.py
69 lines (52 loc) · 1.59 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 -*- #
from __future__ import unicode_literals
AUTHOR = 'Vincent La'
SITENAME = 'Vincent La'
SITEURL = ''
STATIC_PATHS = ['assets', 'images']
PATH = 'content'
PAGE_PATHS = ['pages']
PATH_METADATA = r'(pages/)?(?P<pathto>.*)[\.]'
# Plugins
PLUGIN_PATHS = ['plugins']
PLUGINS = ['autopages', ]
# Makes plugins that work with content (e.g. autopages) work
LOAD_CONTENT_CACHE = False
TIMEZONE = 'Europe/Paris'
DEFAULT_LANG = 'English'
USE_FOLDER_AS_CATEGORY = True
# 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
# Custom Theme
THEME = 'themes/vince-theme'
MAIN_MENU = (
('About', '/about'),
('Blog', '/blog'),
('Projects', '/projects'),
('Resume', '/resume')
)
# Blogroll
LINKS = (('Pelican', 'http://getpelican.com/'),
('Python.org', 'http://python.org/'),
('Jinja2', 'http://jinja.pocoo.org/'),
('You can modify those links in your config file', '#'),)
# Social widget
SOCIAL = (('You can add links in your config file', '#'),
('Another social link', '#'),)
DEFAULT_PAGINATION = 10
# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True
# URLs
CATEGORY_URL = '{slug}'
CATEGORY_SAVE_AS = '{slug}/index.html'
ARTICLE_URL = '{pathto}'
ARTICLE_SAVE_AS = '{pathto}/index.html'
PAGE_URL = '{pathto}/'
PAGE_SAVE_AS = '{pathto}/index.html'
# Order articles by filename
ARTICLE_ORDER_BY = 'source_path'