forked from SerhiiKozachenko/martinfitzpatrick.name
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pelicanconf.py
212 lines (178 loc) · 5.7 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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
AUTHOR = u'Martin Fitzpatrick'
AUTHOR_EMAIL = u'[email protected]'
AUTHOR_ABOUT = u"A final-year PhD student working on the metabolomics of inflammatory diseases."
SITENAME = u'Martin Fitzpatrick'
SITESUBTITLE = u'Postgraduate Researcher in Metabolomics and Immunology '
SITEURL = 'http://martinfitzpatrick.name'
FEED_DOMAIN = SITEURL
FEED_ATOM = 'feeds/atom.xml'
TAG_FEED_ATOM = 'feeds/%s.tag.atom.xml'
CATEGORY_FEED_ATOM = 'feeds/%s.atom.xml'
TIMEZONE = 'UTC'
DEFAULT_LANG = u'en'
TRANSLATION_FEED_ATOM = None
TRANSLATION_FEED_RSS = None
from datetime import datetime
CURRENT_YEAR = datetime.now().year
AUTHOR_IDENTITIES = {
'Martin Fitzpatrick':'https://plus.google.com/115539678583643563408',
}
SITE = {
'owner': {'twitter':'mfitzp'},
}
PLUGIN_PATHS = ['/Users/mxf793/repos/pelican-plugins',]
PLUGINS = [
'gravatar',
'related_posts',
'sitemap',
'summary',
'series',
]
STATIC_PATHS = ['images',
'extra/robots.txt',
'extra/favicon.ico',
'extra/.htaccess',]
EXTRA_PATH_METADATA = {
'extra/robots.txt': {'path': 'robots.txt'},
'extra/favicon.ico': {'path': 'favicon.ico'},
'extra/.htaccess': {'path': '.htaccess'},
}
# Blogroll
LINKS = (
('Pathomx', 'http://pathomx.org'),
('The Open Lab Book', 'http://theolb.readthedocs.org'),
('Pelican', 'http://docs.notmyidea.org/alexis/pelican/'),
('Python.org', 'http://python.org'),
)
# Social widget
SOCIAL = ([
('Email', 'envelope-o', 'mailto:%s' % AUTHOR_EMAIL),
],[
('Github', 'github', 'https://github.com/mfitzp'),
('StackOverflow', 'stack-exchange', 'http://stackoverflow.com/users/754456/mfitzp'),
],[
('ORCID', 'circle', 'http://orcid.org/0000-0002-0695-1988'),
('ResearchGate', 'list', 'https://www.researchgate.net/profile/Martin_Fitzpatrick/'),
],[
('Facebook', 'facebook', 'https://www.facebook.com/martinfitzp'),
('Google+', 'google-plus', 'https://plus.google.com/115539678583643563408/?rel=author'),
('LinkedIn', 'linkedin', 'https://uk.linkedin.com/in/martinfitzp'),
('Twitter', 'twitter', 'https://twitter.com/mfitzp'),
],[
('RSS', 'rss', '%s/%s' % (FEED_DOMAIN, FEED_ATOM) ),
],
)
DEFAULT_PAGINATION = 10
SUMMARY_MAX_LENGTH = 50
TYPOGRIFY = True
DISPLAY_CATEGORIES_ON_MENU = True
GITHUB_ACTIVITY_FEED = 'https://github.com/mfitzp.atom'
WITH_FUTURE_DATES = False
AUTHOR_BIO = {
'Martin Fitzpatrick':1,
}
SITEMAP = {
'format': 'xml',
'priorities': {
'articles': 1,
'indexes': 0.5,
'pages': 0.5
},
'changefreqs': {
'articles': 'monthly',
'indexes': 'monthly',
'pages': 'monthly'
}
}
ARTICLE_URL = 'article/{slug}.html'
ARTICLE_SAVE_AS = 'article/{slug}.html'
PAGE_URL = '{slug}.html'
PAGE_SAVE_AS = '{slug}.html'
AUTHOR_URL = 'author/{slug}.html'
AUTHOR_SAVE_AS = 'author/{slug}.html'
CATEGORY_URL = 'category/{slug}.html'
CATEGORY_SAVE_AS = 'category/{slug}.html'
TAG_URL = 'tag/{slug}.html'
TAG_SAVE_AS = 'tag/{slug}.html'
DISQUS_SITENAME = 'golifescience'
GOOGLE_ANALYTICS = 'UA-341253-5'
GITHUB_URL = 'https://github.com/mfitzp'
TWITTER_USERNAME = 'mfitzp'
THEME = 'theme'
SITEURL = 'http://localhost:8000'
STATICURL = 'http://localhost:8000'
DELETE_OUTPUT_DIRECTORY = True
ADDRESS = u"℅ Centre for Translational Inflammation Research<br /> \
Queen Elizabeth Hospital<br /> \
University of Birmingham<br /> \
Birmingham<br /> \
United Kingdom<br /> \
B15 2TT<br />"
PROJECTS = [
{
'title': 'Accuri2FCS',
'description': 'Convert Accuri .c6 files to .fcs standard',
'url': 'https://github.com/mfitzp/accuri2fcs',
},
{
'title': 'BioCyc',
'description': 'Python interface to the BioCyc Web API',
'url': 'http://github.com/mfitzp/BioCyc',
},
{
'title': 'GPML2SVG',
'description': 'A command-line/Python GPML to SVG pathway renderer',
'url': 'http://github.com/mfitzp/gpml2svg',
},
{
'title': 'Icoshift (Python)',
'description': 'A Python implmentation of the Icoshift algorithm',
'url': 'https://github.com/mfitzp/icoshift',
},
{
'title': 'mplstyler',
'description': 'An API for assigning consistent marker styles to Matplotlib plots.',
'url': 'https://github.com/mfitzp/mplstyler',
},
{
'title': 'The Open Lab Book',
'description': 'Freely available lab protocols under a CC license',
'url': 'http://theolb.readthedocs.org',
},
{
'title': 'MetaboHunter',
'description': 'A Python interface to the MetaboHunter 1D NMR metabolite identification service',
'url': 'http://github.com/mfitzp/metabohunter',
},
{
'title': 'Pathminer',
'description': 'Algorithmically score and select pathways/reactions from compound, protein or gene data',
'url': 'https://github.com/mfitzp/pathminer',
},
{
'title': 'Pathomx',
'description': 'Workflow-based metabolomic analysis tool',
'url': 'http://pathomx.org',
},
{
'title': 'PyQtConfig',
'description': 'A PyQt config manager. Keep Qt widgets in sync with a config dictionary and/or QSettings object. ',
'url': 'https://github.com/mfitzp/pyqtconfig',
},
{
'title': 'QtIPy',
'description': 'IPython Notebook automator',
'url': 'http://github.com/mfitzp/qtipy',
},
]
#=============
# Twitter Card
#=============
# https://dev.twitter.com/cards
TWITTER_CARD_USE = (True) # (False)
TWITTER_CARD_SITE = '@mfitzp' # The site's Twitter handle like @my_blog
TWITTER_CARD_CREATOR = '@mfitzp' # Your twitter handle like @monkmartinez
TWITTER_CARD_DOMAIN = 'martinfitzpatrick.name' # The site domain
GRAVARTAR_URL = ''