{# Copyright (C) 2020-2026 Graz University of Technology. invenio-override is free software; you can redistribute it and/or modify it under the terms of the MIT License; see LICENSE file for more details. #} {%- block css %}{{ webpack['invenio-override-theme.css'] }}{%- endblock %} {%- block javascript %} {{ webpack['invenio-override-js.js'] }} {%- endblock javascript %} {% set footer_links = config.get('OVERRIDE_FOOTER_LINKS', {}) %} {% if footer_links %} {# Build inline CSS custom properties from config — no webpack rebuild needed #} {% set fo_parts = [] %} {% if config.get('OVERRIDE_FOOTER_BACKGROUND') %} {% set fo_parts = fo_parts + ['--fo-bg:' + config.OVERRIDE_FOOTER_BACKGROUND] %} {% endif %} {% if config.get('OVERRIDE_FOOTER_FG_COLOR') %} {% set fo_parts = fo_parts + ['--fo-fg:' + config.OVERRIDE_FOOTER_FG_COLOR] %} {% endif %} {% if config.get('OVERRIDE_FOOTER_LOGO_FILTER') is not none and config.get('OVERRIDE_FOOTER_LOGO_FILTER') != '' %} {% set fo_parts = fo_parts + ['--fo-logo-filter:' + config.OVERRIDE_FOOTER_LOGO_FILTER] %} {% endif %} {% if config.get('OVERRIDE_FOOTER_DIVIDER_COLOR') %} {% set fo_parts = fo_parts + ['--fo-divider:' + config.OVERRIDE_FOOTER_DIVIDER_COLOR] %} {% endif %} {% endif %}