File tree Expand file tree Collapse file tree
templates/cernopendata_theme Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,7 +43,6 @@ class GlobalVariables:
4343 "totem" : {
4444 "name" : "TOTEM" ,
4545 "url" : "totem-experiment.web.cern.ch" ,
46- "width" : "auto" ,
4746 },
4847 }
4948
Original file line number Diff line number Diff line change @@ -90,7 +90,9 @@ def index():
9090 except Exception :
9191 pass
9292 return render_template (
93- "cernopendata_pages/front/index.html" , featured_articles = results
93+ "cernopendata_pages/front/index.html" ,
94+ featured_articles = results ,
95+ description = "Portal to the High Energy Physics data from CERN" ,
9496 )
9597
9698
Original file line number Diff line number Diff line change 99 < img
1010 src ="{{ url_for('static', filename='img/experiments/{}.gif'.format(id)) }} "
1111 alt ="{{ exp.name }} experiment "
12- width ="{{ exp.get('width', 55 ) }} "
12+ width ="{{ exp.get('width', 'auto' ) }} "
1313 height ="{{ exp.get('height', 55) }} "
1414 />
1515 </ a >
Original file line number Diff line number Diff line change 44 {{ super() }}
55 {{ webpack['cernopendata_css.css'] }}
66 {{ webpack['glossary_css.css'] }}
7- <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
8- <!--[if lt IE 9]>
9- <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
10- <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
11- <![endif]-->
127{%- endblock css %}
138
149{%- block bypasslinks %}
7267 "HTML-CSS" : { availableFonts : [ "TeX" ] , matchFontHeight : false }
7368 } ) ;
7469 </ script >
75-
76- < script type ="text/javascript " src ="{{ config['THEME_MATHJAX_CDN'] }} "> </ script >
7770 {% endblock %}
7871
7972 {%- block jsonld_serialization %}{%- endblock jsonld_serialization %}
Original file line number Diff line number Diff line change @@ -59,6 +59,13 @@ server {
5959
6060 location /static {
6161 root /opt/invenio/var/instance;
62+ # Cache for 30 days
63+ expires 30d;
64+ # Cache-Control header
65+ add_header Cache-Control "public, max-age=2592000, immutable";
66+ # Compress
67+ gzip on;
68+ gzip_types text/css application/javascript;
6269 }
6370
6471 # Old reverse proxy to EOS locations used from COD2 times. (Not advertised
You can’t perform that action at this time.
0 commit comments