mirror of
https://github.com/Cian-H/invenio-theme-iform.git
synced 2025-12-27 14:31:58 +00:00
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).
27 lines
610 B
Python
27 lines
610 B
Python
# -*- coding: utf-8 -*-
|
|
#
|
|
# Copyright (C) 2020 TUGRAZ.
|
|
#
|
|
# invenio-theme-tugraz is free software.
|
|
|
|
"""JS/CSS Webpack bundles for theme."""
|
|
|
|
from invenio_assets.webpack import WebpackThemeBundle
|
|
|
|
theme = WebpackThemeBundle(
|
|
__name__,
|
|
'assets',
|
|
default='semantic-ui',
|
|
themes={
|
|
'semantic-ui': dict(
|
|
entry={
|
|
'invenio-theme-tugraz-theme':
|
|
'./less/invenio_theme_tugraz/theme.less',
|
|
'invenio-theme-tugraz-js':
|
|
'./js/invenio_theme_tugraz/theme.js'
|
|
},
|
|
dependencies={}
|
|
)
|
|
}
|
|
)
|