-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpelicanconf.py
More file actions
128 lines (98 loc) · 3.92 KB
/
pelicanconf.py
File metadata and controls
128 lines (98 loc) · 3.92 KB
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
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = u'Parallel Kalman Filter Tracking'
SITENAME = u'Parallel Kalman Filter Tracking'
SITEURL = 'https://trackreco.github.io'
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 = (
('Project Team','/pages/team.html'),
('Publications and Presentations','/pages/documents.html'),
('Blog','/category/blog.html')
)
# Blogroll
LINKS = (
('IRIS-HEP','https://iris-hep.org'),
('CoDaS-HEP school','http://codas-hep.org'),
('CMS','http://home.cern/science/experiments/cms'),
('ATLAS','http://home.cern/science/experiments/atlas'),
('CERN','http://cern.ch'),
('NSF','http://www.nsf.gov/'),
('Indico','https://indico.cern.ch/category/8433/'),
('CTD2020','http://cern.ch/ctd2020'),
('CHEP2019','http://chep2019.org/'),
)
# Social widget
#SOCIAL = (('github', 'http://github.com/trackreco'),
# ('Indico', 'http://indico.cern.ch/category/5816/'),
# ('Vidyo Room', 'https://vidyoportal.cern.ch/flex.html?roomdirect.html&key=g24IFWEdhejzHVy851PztEh82e4'),)
#CC_LICENSE="CC-BY"
DEFAULT_PAGINATION = 10
# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True
RELATIVE_URLS = False
DISPLAY_TAGS_ON_SIDEBAR=False
DISPLAY_RECENT_POSTS_ON_SIDEBAR=False
THEME = 'pelican-themes/pelican-bootstrap3'
#THEME = 'notmyidea'
PYGMENTS_STYLE='default'
#PYGMENTS_STYLE='friendly'
#THEME = '/Users/cranmer/virtualenvs/pelican/lib/python2.7/site-packages/pelican/themes/pelican-bootstrap3'
# This requires Pelican 3.3+
#For pelican-bootstrap3
BOOTSTRAP_THEME='cerulean'
#BOOTSTRAP_THEME='yeti'
#BOOTSTRAP_THEME='superhero' #nice but, background doesn't work well with code as is
#BOOTSTRAP_THEME='cosmo'
#BOOTSTRAP_THEME='paper'
DISPLAY_BREADCRUMBS=False
BOOTSTRAP_NAVBAR_INVERSE =True
BANNER="images/PU140-3D.png"
BANNER_TITLE=None
BANNER_SUBTITLE = None
BANNER_ALL_PAGES = False
#custom CSS
#CUSTOM_CSS = 'static/custom.css'
DIRECT_TEMPLATES = ('index', 'categories', 'authors', 'archives', 'search')
#STATIC_PATHS = ['images','css', 'downloads', 'downloads/notebooks',
# 'downloads/files','downloads/code', 'favicon.png']
STATIC_PATHS = ['images','css', 'downloads',
'downloads/files','downloads/code', 'favicon.png']
# Tell Pelican to change the path to 'static/custom.css' in the output dir
EXTRA_PATH_METADATA = {
'css/custom.css': {'path': 'static/custom.css'}
}
CODE_DIR = 'downloads/code'
#NOTEBOOK_DIR = 'downloads/notebooks'
FAVICON= "images/favicon.ico"
PLUGIN_PATHS = ['pelican-plugins']
#PLUGINS = ['summary', 'liquid_tags.img', 'liquid_tags.video',
# 'liquid_tags.youtube', 'render_math',
# 'liquid_tags.include_code', 'liquid_tags.notebook',
# 'liquid_tags.literal', 'tipue_search']
PLUGINS = ['summary', 'liquid_tags.img', 'liquid_tags.video',
'liquid_tags.youtube', 'render_math',
'liquid_tags.include_code',
'liquid_tags.literal', 'tipue_search']
# comments
DISQUS_SITENAME="trackreco"
''' For reference, this code
<div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES * * */
var disqus_shortname = 'trackreco';
/* * * 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="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
'''