-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpelicanconf.py
More file actions
120 lines (96 loc) · 3.65 KB
/
Copy pathpelicanconf.py
File metadata and controls
120 lines (96 loc) · 3.65 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
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = u'IPCC ROOT'
SITENAME = u'IPCC ROOT'
SITEURL = ''
TIMEZONE = 'Europe/Paris'
DEFAULT_LANG = u'en'
# Feed generation is usually not desired when developing
FEED_RSS = None
FEED_ATOM = None
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
DISPLAY_PAGES_ON_MENU =False
MENUITEMS = (
('About','/pages/about.html'),
('Documents','/pages/documents.html'),
)
# ('Blog','/category/blog.html')
# Blogroll
LINKS = (('Intel PCC','https://software.intel.com/en-us/ipcc'),
('ROOT','https://root.cern.ch/'),
('DIANA/HEP','http://diana-hep.org'),
('Parallel Kalman Filter Tracking','http://trackreco.github.io'),
('Website github', 'https://github.com/ipcc-root'),
)
# Social widget
# Do not set for now, include these links in LINKS above
#SOCIAL = (('github', 'http://github.com/ipcc-root'),
# ('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
#DISPLAY_ARTICLE_INFO_ON_INDEX=False
THEME = 'pelican-themes/pelican-bootstrap3'
#THEME = 'pelican-themes/backdrop'
PYGMENTS_STYLE='default'
#PYGMENTS_STYLE='friendly'
#BOOTSTRAP_THEME='spacelab'
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/ipcc-root-banner.png"
#BANNER="images/ipcc-root-banner-faded.png"
BANNER="images/ipcc-root-banner-faded2-crop.png"
BANNER_TITLE=None
#BANNER_SUBTITLE = None
BANNER_SUBTITLE="Princeton/Intel Parallel Computing Center to Modernize the ROOT Math and I/O Libraries"
BANNER_ALL_PAGES = False
#custom CSS
CUSTOM_CSS = 'static/custom.css'
#DIRECT_TEMPLATES = ('index', 'categories', 'authors', 'archives', 'search')
DIRECT_TEMPLATES = ('index', 'categories', 'authors', 'archives')
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', 'i18n_subsites', 'liquid_tags.img', 'liquid_tags.video',
'liquid_tags.youtube', 'render_math',
'liquid_tags.include_code',
'liquid_tags.literal', 'tipue_search']
JINJA_ENVIRONMENT = {
'extensions': ['jinja2.ext.i18n'],
}
# comments
#DISQUS_SITENAME="ipcc-root"
''' For reference, this code
<div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES * * */
var disqus_shortname = 'ipcc-root';
/* * * 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>
'''