{# SPDX-FileCopyrightText: 2015-2018 CERN. SPDX-FileCopyrightText: 2021 New York University. SPDX-FileCopyrightText: 2020-2026 TU Wien. SPDX-License-Identifier: MIT #} {#- base: invenio-theme v4.4.0 #} {#- changes: quite a few, see "change:" comments in the code #} {%- block head %} {%- block head_meta %} {%- if description %} {%- endif %} {%- if keywords %} {%- endif %} {%- if config.get('THEME_GOOGLE_SITE_VERIFICATION', None) %} {%- for google_id in config.THEME_GOOGLE_SITE_VERIFICATION %} {%- endfor %} {%- endif %} {%- set meta_generator = get_meta_generator() -%} {%- if meta_generator -%} {%- endif -%} {#- Add meta tags from an existing "meta_robot_tags" Jinja variable or config #} {%- set meta_robot_tags = meta_robot_tags or config.get("THEME_META_ROBOT_TAGS") %} {%- for meta_tag in meta_robot_tags %} {%- endfor %} {%- endblock head_meta %} {%- block head_title %} {%- set title = title or _(config.THEME_SITENAME) or _('Invenio') %} {{ title }} {%- endblock head_title %} {%- block head_links %} {#- change: favicons in 16x16 and 32x32 #} {%- if keywords %} {%- endif %} {%- block head_links_langs %} {%- if alternate_urls %} {%- for alt_ln, alternate_url in alternate_urls.items() %} {%- endfor %} {%- endif %} {%- endblock %} {%- block head_apple_icons %} {#- change: removed apple touch icons #} {%- endblock head_apple_icons %} {%- endblock head_links %} {%- block header %} {%- endblock header %} {%- block css %} {{- webpack['theme.css'] }} {#- change: removed IE8 compat code #} {%- endblock css %} {%- block tuw_metadata %} {#- change: added tuw_metadata block #} {%- endblock tuw_metadata -%} {%- block tracking %} {#- change: added matomo block #} {%- if config.get("THEME_TUW_MATOMO_ENABLED", False) %} {{- webpack["invenio-theme-tuw-tracking.js"] }} {%- endif %} {%- endblock tracking %} {%- endblock head %} {#- change: formatting, shape of isMathJaxEnabled #} {#- change: added matomo code #} {%- if config.get("THEME_TUW_MATOMO_ENABLED", False) and config.get("THEME_TUW_MATOMO_URL", None) %} {%- set matomo_url = config.get("THEME_TUW_MATOMO_URL", "").rstrip("/") + "/" %} {%- set matomo_site_id = config.get("THEME_TUW_MATOMO_SITE_ID", 1) %} {%- endif %} {%- block body %} {%- block bypasslinks %} {%- endblock bypasslinks %} {#- change: removed browserupgrade block (IE < 8) #} {#- change: most of the body_inner block #} {%- block body_inner %} {#- same as upstream #} {%- block page_header %} {%- include config.THEME_HEADER_TEMPLATE %} {%- endblock page_header %} {#- the banner, flashed messages, and breadcrumbs were moved here from the header #} {%- block site_banner %} {% from 'invenio_banners/banner.html' import banner %} {{ banner() }} {%- endblock %} {%- block flashmessages %} {%- from "invenio_theme/macros/messages.html" import flashed_messages with context -%} {{ flashed_messages() }} {%- endblock %} {%- block breadcrumbs %} {%- endblock breadcrumbs %}
{%- block page_hero %} {%- endblock page_hero %} {%- block page_body %} {%- include "invenio_theme/body.html" %} {%- endblock page_body %}
{#- same as upstream #} {%- block page_footer %} {%- include config.THEME_FOOTER_TEMPLATE %} {%- endblock page_footer %} {%- endblock body_inner %} {%- block javascript %} {#- change: add static path for FDT if enabled (we need the nonce for CSP, it's not included in the provided script tag) #} {%- if config.DEBUG_TB_ENABLED -%} {%- endif -%} {%- if config.THEME_MATHJAX_CDN -%} {#- change: added nonce for the inline script #} {%- endif -%} {%- include config.THEME_JAVASCRIPT_TEMPLATE %} {%- endblock javascript %} {%- block trackingcode %} {%- include config.THEME_TRACKINGCODE_TEMPLATE %} {%- endblock trackingcode %} {%- endblock body %}