-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpelicanconf.py
198 lines (155 loc) · 6.86 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
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = u'Kyle Cranmer'
SITENAME = u'Theory And Practice'
SITEURL = ''
TIMEZONE = 'Europe/Paris'
DEFAULT_LANG = u'en'
# Feed generation is usually not desired when developing
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
DISPLAY_PAGES_ON_MENU =False
MENUITEMS = (
('About','/index.html'),
('Research','/pages/Research.html'),
('Projects','/pages/projects.html'),
('Media & Outreach','/pages/in-the-news.html'),)
LINKS = (('Data Science @ UW', 'https://datascience.wisc.edu'),
('My UW Physics webpage','https://www.physics.wisc.edu/directory/cranmer-kyle/'),
('IRIS-HEP','https://iris-hep.org/'),
)
'''
# Blogroll
LINKS = (('Pelican', 'http://getpelican.com/'),
('Quantum Diaries', 'http://www.quantumdiaries.org/'),
# #('Me @ Quantum Diaries','http://www.quantumdiaries.org/author/kyle-cranmer/'),
('Not Even Wrong','http://www.math.columbia.edu/~woit/wordpress/'),
('Cocktail Party Physics','http://twistedphysics.typepad.com/cocktail_party_physics/'),
('Résonaances','http://resonaances.blogspot.com/'),
('Matt Strassler','http://profmattstrassler.com/'),
# #('Life as a physicist','http://gordonwatts.wordpress.com/'),
('Tommaso Dorigo','http://www.science20.com/physics'),
# #('Cosmic Variance','http://blogs.discovermagazine.com/cosmicvariance/'),
# #('Collider Blog','http://muon.wordpress.com/'),
('Symmetry Breaking','http://www.symmetrymagazine.org/breaking'),
('INSPIRE','http://blog.inspirehep.net/'),
('Data Pub','http://datapub.cdlib.org/'),
('Hogg’s Research','http://hoggresearch.blogspot.com/'),)
'''
# Social widget
SOCIAL = (('twitter', 'http://twitter.com/kylecranmer'),
('github', 'http://github.com/cranmer'),
('linkedin','http://www.linkedin.com/in/kylecranmer'),
('youtube','https://www.youtube.com/channel/UCKl2VoIJiPYp3QhuK22b7xQ'),
('INSPIRE (≤ 10 authors)','https://inspirehep.net/literature?sort=mostrecent&size=25&page=1&q=a%3Ak.s.cranmer.1%20and%20ac%201-%3E10&ui-citation-summary=true'),
('Google Scholar', 'http://scholar.google.com/citations?user=EZjSxgwAAAAJ'),
('ORCiD','https://orcid.org/0000-0002-5769-7094'),
('Wikipedia','http://localhost:8000/pages/Research.html')
)
# ('ImpactStory','https://impactstory.org/u/0000-0002-5769-7094')
# ('flickr','http://www.flickr.com/photos/hoonynoo/'),
# ('google+','https://plus.google.com/106689822196584540592/posts'),
# ('figshare','http://figshare.com/authors/Kyle%20Cranmer/432748'),
CC_LICENSE="CC-BY"
DEFAULT_PAGINATION = 6
#use URLs that match old wordpress site
ARTICLE_URL = '{date:%Y}/{date:%m}/{slug}/'
ARTICLE_SAVE_AS = '{date:%Y}/{date:%m}/{slug}/index.html'
# comments
DISQUS_SITENAME="theoryandpractice"
# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True
####################################################
# Additions
STATIC_PATHS = ['images', 'downloads', 'downloads/notebooks',
'downloads/files','downloads/code', 'favicon.png',
'extra/CNAME']
EXTRA_PATH_METADATA = {'extra/CNAME': {'path': 'CNAME'},}
READERS = {'html': None}
#STATIC_PATHS = ['images', 'extra/CNAME']
CODE_DIR = 'downloads/code'
NOTEBOOK_DIR = 'downloads/notebooks'
PUBLICATIONS_SRC = 'content/kyle-20authors.bib'
#BIBLIOGRAPHY_START = '<section id="bib"><h1>My awesome bibliography</h1>'
#BIBLIOGRAPHY_END = '</section>'
DIRECT_TEMPLATES = ['publications']
TEMPLATE_PAGES = {'publications.html': 'output/publications.html'}
PLUGIN_PATHS = ['pelican-plugins']
PLUGINS = ['summary', 'liquid_tags.img', 'liquid_tags.video',
'liquid_tags.youtube', 'tag_cloud',
'render_math',
'pelican_javascript',
'liquid_tags.include_code',
'i18n_subsites', 'pelican-cite', 'pelican-bibtex',
'pelican-ipynb.liquid','liquid_tags.literal']
# 'liquid_tags.notebook','liquid_tags.literal']
# 'pelican-ipynb' ,'liquid_tags.literal']
#
# 'liquid_tags.notebook'
#, 'liquid_tags.thebe']
THEME = 'pelican-themes/pelican-bootstrap3'
JINJA_EXTENSIONS = ['jinja2.ext.i18n']
#THEME = 'notmyidea'
PYGMENTS_STYLE='default'
#PYGMENTS_STYLE='friendly'
#THEME = '../pelican-bootstrap3'
#THEME = '/Users/cranmer/virtualenvs/pelican/lib/python2.7/site-packages/pelican/themes/pelican-bootstrap3'
# This requires Pelican 3.3+
#For pelican-ootstrap3
BOOTSTRAP_THEME='simplex'
BOOTSTRAP_THEME='yeti'
BOOTSTRAP_THEME='superhero' #nice but, background doesn't work well with code as is
BOOTSTRAP_THEME='cosmo' #used for T&P through 2016
BOOTSTRAP_THEME='flatly' #looks good, some color
#BOOTSTRAP_THEME='journal' #also looks good, more B&W
#BOOTSTRAP_THEME='readable'
#BOOTSTRAP_THEME='paper'
DISPLAY_BREADCRUMBS=False
BOOTSTRAP_NAVBAR_INVERSE=False
DISPLAY_RECENT_POSTS_ON_SIDEBAR=True
TAG_CLOUD_STEPS = 4
TAG_CLOUD_BADGE = True
DISPLAY_TAGS_ON_SIDEBAR=True
TAG_CLOUD_MAX_ITEMS=25
DISPLAY_TAGS_INLINE=True
HIDE_SIDEBAR=False
#ABOUT_ME="I'm a professor at NYU interested in particle physics, open science, data science, and science communication to the broader public."
#AVATAR='/images/kyle-andys-party-miras-photo.jpg'
AVATAR=None
ABOUT_ME=None
#TWITTER_WIDGET_ID='353505377641447424'
TWITTER_WIDGET_ID=''
#GITHUB_USER='cranmer'
#GITHUB_REPO_COUNT=True
#GITHUB_SKIP_FORK=True
#GITHUB_SHOW_USER_LINK=True
ADDTHIS_PROFILE='ra-5332e76b5340f5f3'
GOOGLE_ANALYTICS='UA-3337202-1'
#TWITTER_CARDS='False'
#INDEX_SAVE_AS = 'index.html'
#the deault _nb_header is changing
#fonts etc. of rest of notmyidea and pelican-bootstrap3 themes
#looks ok in notmyidea, but no style at all in bootstrap3
#This souldn't be necessary with updated pelican-bootstrap3
#EXTRA_HEADER = open('_nb_header_minimal.html').read().decode('utf-8')
#EXTRA_HEADER = open('extra_header_minimal.html').read().decode('utf-8')
#EXTRA_HEADER = '' #need to flush
#EXTRA_HEADER = open('_nb_header.html').read().decode('utf-8')
#DISQUS Code
'''
<div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = 'theoryandpractice'; // required: replace example with your forum shortname
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
'''