-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpelicanconf.py
149 lines (115 loc) · 4.17 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
#THEME = "mmenu-pelican"
THEME = "simple-animation"
SITENAME = 'Adam Tindale'
SITESUBTITLE = ''
SITEURL = 'http://www.adamtindale.com'
ARTICLE_PATHS = ['blog']
ARTICLE_URL = 'blog/{category}/{slug}/'
ARTICLE_SAVE_AS = 'blog/{category}/{slug}/index.html'
AUTHOR = 'Adam Tindale'
AUTHOR_URL = False
AUTHOR_SAVE_AS = False
AUTHORS_URL = False
AUTHORS_SAVE_AS = False
PDF_GENERATOR = False
PAGE_PATHS = ['pages']
PAGE_URL = '{slug}/'
PAGE_SAVE_AS = '{slug}/index.html'
CATEGORY_SAVE_AS = 'blog/{slug}/index.html'
CATEGORY_URL = 'blog/{slug}/'
ARCHIVES_SAVE_AS = 'blog/archives/index.html'
#FEED_ATOM = 'blog/feeds/'
#FEED_RSS = 'blog/feeds/'
TAG_SAVE_AS = False
TAG_URL = False
INDEX_SAVE_AS = 'blog/index.html'
TIMEZONE = 'America/Toronto'
# http://stackful-dev.com/static-site-jinja-pelican-shared-templates.html
DEFAULT_LANG = 'en'
DEFAULT_DATE_FORMAT = '%A %B %d, %Y'
# Blogroll
# LINKS = ('Pelican', 'http://docs.notmyidea.org/alexis/pelican/')
DEFAULT_PAGINATION = 5
#PAGINATED_DIRECT_TEMPLATES = (
# ('index'),
#)
DEFAULT_CATEGORY = 'Uncategorized'
DIRECT_TEMPLATES = ('index', 'archives')
IGNORE_FILES = ['.DS_Store', '.DS_store']
# http://docs.getpelican.com/en/3.3.0/settings.html#using-pagination-patterns
PAGINATION_PATTERNS = (
(1, '{base_name}/', '{base_name}/index.html'),
(2, '{base_name}/page/{number}/', '{base_name}/page/{number}/index.html'),
)
MENUITEMS = (
('Home', ''),
('Bio/CV/Events', 'info'),
('Projects', 'projects'),
('Research', 'research'),
('Code', 'code'),
)
DISPLAY_PAGES_ON_MENU = False
STATIC_PATHS = [
'img',
'js/jquery.github-activity.js',
'js/jquery.timeago.js',
'js/jquery.knob.js',
'js/flocking-all.min.js',
'js/prism.js',
'css/prism.css',
'missing.html',
'records/record.html',
'records/simple.html',
'records/oscillate.html',
'records/sphere.html',
'flocking/template.html',
'flocking/waveshapetest.html',
]
EXTRA_PATH_METADATA = {
'js/jquery.github-activity.js' : {'path': 'theme/js/jquery.github-activity.js'},
'js/jquery.knob.js' : {'path': 'theme/js/jquery.knob.js'},
'js/jquery.timeago.js' : {'path': 'theme/js/jquery.timeago.js'},
'js/prism.js' : {'path': 'theme/js/prism.js'},
'css/prism.js' : {'path': 'theme/css/prism.css'},
'js/flocking-all.min.js' : {'path': 'theme/js/flocking-all.min.js'},
'records/record.html' : {'path': 'record/index.html'},
'records/simple.html' : {'path': 'simple/index.html'},
'records/oscillate.html' : {'path': 'oscillate/index.html'},
'records/sphere.html' : {'path': 'sphere/index.html'},
}
GITHUB_URL = 'https://github.com/drart/'
SOCIAL = (
#('twitter', 'http://twitter.com/adamtindale'),
('github', 'https://github.com/drart/adamtindale.com'),
('email', 'mailto:adam@adamtindale.com'),
('stackoverflow', 'http://stackoverflow.com/users/1945902/adam-tindale'),
('soundcloud', 'https://soundcloud.com/adamtindale'),
('googlescholar', 'http://scholar.google.ca/citations?user=cy820NIAAAAJ&hl=en'),
)
# theme variables
BLOGTITLE = 'Adam\'s Blog'
BLOGDIR = 'blog'
RECENT_BLOG = True
WORKTITLE = 'Online Pieces'
WORKLINKS = (
('Slide (2017)', 'http://www.adamtindale.com/slide'),
('OSCILLATE (2015)', 'http://www.adamtindale.com/oscillate'),
('SIMPLE (2013)', 'http://www.adamtindale.com/simple'),
('RECORD (2011)', 'http://www.adamtindale.com/record'),
('Sphere (2010)', 'http://www.adamtindale.com/sphere'),
)
PLUGIN_PATHS = ['pelican-plugins']
#PLUGINS = ['neighbors', 'code_include', 'pelican_gist', 'gist_directive', 'pelican_git']
PLUGINS = ['neighbors', 'code_include', 'gist_directive']
GIT_CACHE_ENABLED = True
SITEMAP = {
'format': 'xml',
'changefreqs': {
'articles': 'monthly',
'indexes': 'daily',
'pages': 'monthly'
}
}
LOAD_CONTENT_CACHE = False