{# -*- coding: utf-8 -*- Copyright (C) 2015-2018 CERN. Copyright (C) 2021 New York University. Copyright (C) 2020-2022 TU Wien. Invenio is free software; you can redistribute it and/or modify it under the terms of the MIT License; see LICENSE file for more details. #} {#- base: invenio-theme v3.1.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 %} {%- 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, added 'pushable' class #} {#- 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 %} {%- block sidebar %} {#- TODO check if we can rework the sidebar #} {#- * refactor (different file & page structure #} {#- * get rid of the horizontal scroll bar #} {%- endblock sidebar %}
{#- same as upstream #} {%- block page_header %} {%- include config.THEME_HEADER_TEMPLATE %} {%- endblock page_header %} {%- block page_hero %} {%- endblock page_hero %} {%- block flashmessages %} {%- from "invenio_theme/macros/messages.html" import flashed_messages with context -%} {{ flashed_messages() }} {%- endblock %} {#- these seem to have been moved here from the header #} {#- TODO check if they are actually useful #} {%- block breadcrumbs %} {%- endblock breadcrumbs %}
{%- 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 %} {%- include config.THEME_JAVASCRIPT_TEMPLATE %} {%- endblock javascript %} {%- block trackingcode %} {%- include config.THEME_TRACKINGCODE_TEMPLATE %} {%- endblock trackingcode %} {%- endblock body %}