-
Notifications
You must be signed in to change notification settings - Fork 10
/
pelicanconf.py
136 lines (105 loc) · 4.25 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
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = u'DIANA HEP'
SITENAME = u'DIANA HEP'
SITEURL = 'https://diana-hep.org'
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 = (
('Team','/pages/team.html'),
('Activities/Products','/pages/activities.html'),
('DIANA Fellows','/pages/fellows.html'),
('Blog','/category/blog.html')
)
# Blogroll
LINKS = (('ROOT', 'https://root.cern.ch/drupal/'),
('NSF SI2','http://www.nsf.gov/funding/pgm_summ.jsp?pims_id=504817'),
('IRIS-HEP','http://iris-hep.org/'),
('S2I2-HEP','http://s2i2-hep.org/'),
('Jetscape','http://jetscape.wayne.edu/'),
('rootpy','http://www.rootpy.org'),
('scikit-learn','http://scikit-learn.org/stable/'),
('RooStats','https://twiki.cern.ch/twiki/bin/view/RooStats/WebHome'),
('Conferences','http://diana-hep.org/pages/conferences.html'),
)
# Social widget
SOCIAL = (('twitter', 'http://twitter.com/diana_hep'),
('github', 'http://github.com/diana-hep'),
('YouTube', 'https://www.youtube.com/channel/UCzFnto-EbPAfERLr0AZb58g'),
('Indico', 'https://indico.cern.ch/category/7192/'),
('Google Group', 'https://groups.google.com/forum/#!forum/diana-hep'),
('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=True
THEME = 'pelican-bootstrap3'
#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'
#BOOTSTRAP_THEME='paper'
DISPLAY_BREADCRUMBS=False
BOOTSTRAP_NAVBAR_INVERSE =True
BANNER="images/diana-hep-06-banner.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')
DIRECT_TEMPLATES = ('index', 'categories', 'authors', 'archives')
PATH = 'content'
ARTICLE_PATHS = ['blog']
STATIC_PATHS = ['images','css', 'downloads',
'downloads/files','downloads/code', 'pages/projects', '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.notebook',
# 'liquid_tags.literal']
PLUGINS = ['summary', 'liquid_tags.img', 'liquid_tags.video',
'liquid_tags.youtube', 'render_math']
# comments
DISQUS_SITENAME="diana-hep"
''' For reference, this code
<div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES * * */
var disqus_shortname = 'diana-hep';
/* * * 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>
'''