-
Notifications
You must be signed in to change notification settings - Fork 49
/
pelicanconf.py
79 lines (62 loc) · 2.16 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
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = u'WiCS Undergraduate Committee'
SITENAME = u'Women in Computer Science'
SITEURL = ''
PATH = 'content'
STATIC_PATHS = [ 'images', 'extra' ]
EXTRA_PATH_METADATA = {
'extra/robots.txt': # sit these in the top directory
{'path': 'robots.txt'},
'extra/favicon.ico':
{'path': 'favicon.ico'},
}
ARTICLE_URL = '{date:%Y}/{date:%m}/{slug}/'
ARTICLE_SAVE_AS = '{date:%Y}/{date:%m}/{slug}/index.html'
PAGE_URL = '{slug}/'
PAGE_SAVE_AS = '{slug}/index.html'
# Saves first page as "page/" and next as "page/2/", etc.
PAGINATION_PATTERNS = (
(1, '{base_name}/', '{base_name}/index.html'),
(2, '{base_name}/{number}/', '{base_name}/{number}/index.html'),
)
CATEGORY_URL = '{slug}/'
CATEGORY_SAVE_AS = '{slug}/index.html'
TAGS_SAVE_AS = 'tags/index.html'
TAG_URL = 'tags/{slug}/'
TAG_SAVE_AS = 'tags/{slug}/index.html'
AUTHOR_URL = 'author/{slug}/'
AUTHOR_SAVE_AS = 'author/{slug}/index.html'
TIMEZONE = 'Canada/Eastern'
DEFAULT_LANG = u'en'
# 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 = (('Women in Computer Science Committee',
'https://cs.uwaterloo.ca/wics'),
('Women in Engineering', 'https://uwaterloo.ca/women-in-engineering/'),
('Women Who Code Waterloo',
'http://www.meetup.com/Women-Who-Code-Waterloo/'),
('Women in STEM (WiSTEM)', 'http://uwwistem.weebly.com/'),
('FemPhys', 'https://www.facebook.com/groups/705741329511034/'),
('Geek Feminism Wiki', 'http://geekfeminism.wikia.com/'),
('The Ada Initiative', 'http://adainitiative.org/'),
('WiCS IRC Web Chat', 'http://webchat.oftc.net/?channels=wics'),
)
# Social widget
SOCIAL = (('Facebook', 'https://www.facebook.com/groups/wicsUW'),
('Twitter', 'https://twitter.com/wicsuw'),
('GitHub', 'https://github.com/wics-uw'),
)
TWITTER_USERNAME = 'wicsuw'
DEFAULT_PAGINATION = 5
THEME = 'themes/notmyidea'
# Plug-in
PLUGINS = [
'pelican_youtube'
]