File tree 3 files changed +12
-11
lines changed
assets/semantic-ui/js/invenio_app_rdm
3 files changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -262,7 +262,7 @@ def _(x):
262
262
"""Footer base template."""
263
263
264
264
THEME_FRONTPAGE = False
265
- """Use default frontpage."""
265
+ """Use default theme frontpage."""
266
266
267
267
THEME_FRONTPAGE_TITLE = _ ("The turn-key research data management repository" )
268
268
"""Frontpage title."""
Original file line number Diff line number Diff line change @@ -134,13 +134,15 @@ const handleAuthButtonClick = () => {
134
134
135
135
$authButton . on ( { click : handleAuthButtonClick } ) ;
136
136
137
- const invenioConfig = JSON . parse ( document . body . dataset . invenioConfig ) ;
138
- const isMathJaxEnabled = invenioConfig ?. isMathJaxEnabled ;
139
- if ( window . invenio ) {
140
- window . invenio . onSearchResultsRendered = ( ) => {
141
- if ( isMathJaxEnabled ) {
142
- // Re-render mathematical content on the page using MathJax.
143
- return window . MathJax ?. typeset ( ) ;
144
- }
145
- } ;
137
+ if ( document . body . dataset . invenioConfig ) {
138
+ const invenioConfig = JSON . parse ( document . body . dataset . invenioConfig ) ;
139
+ const isMathJaxEnabled = invenioConfig ?. isMathJaxEnabled ;
140
+ if ( window . invenio ) {
141
+ window . invenio . onSearchResultsRendered = ( ) => {
142
+ if ( isMathJaxEnabled ) {
143
+ // Re-render mathematical content on the page using MathJax.
144
+ return window . MathJax ?. typeset ( ) ;
145
+ }
146
+ } ;
147
+ }
146
148
}
Original file line number Diff line number Diff line change @@ -43,7 +43,6 @@ def create_blueprint(app):
43
43
template_folder = "templates" ,
44
44
static_folder = "static" ,
45
45
)
46
-
47
46
blueprint .add_url_rule (** create_url_rule (routes ["index" ], default_view_func = index ))
48
47
blueprint .add_url_rule (
49
48
** create_url_rule (routes ["robots" ], default_view_func = robots )
You can’t perform that action at this time.
0 commit comments