separate html and javascript code

the function hide was in the header.html file enclosed by script tags. it has
been moved to the theme.js file.

to make it run it was necessary to add a entry point to the WebpackThemeBundle
instance in webpack.py (render the js file) and include the resulting js file
manually in footer.html (to be loaded in the browser).
This commit is contained in:
Christoph Ladurner
2020-06-15 21:40:36 +02:00
parent 7f99c2a358
commit 62c52b1c68
4 changed files with 17 additions and 14 deletions

View File

@@ -17,6 +17,8 @@ theme = WebpackThemeBundle(
entry={
'invenio-theme-tugraz-theme':
'./less/invenio_theme_tugraz/theme.less',
'invenio-theme-tugraz-js':
'./js/invenio_theme_tugraz/theme.js'
},
dependencies={}
)