diff --git a/invenio_theme/templates/semantic-ui/invenio_theme/page.html b/invenio_theme/templates/semantic-ui/invenio_theme/page.html index 9bbb65d1..a0f9a339 100644 --- a/invenio_theme/templates/semantic-ui/invenio_theme/page.html +++ b/invenio_theme/templates/semantic-ui/invenio_theme/page.html @@ -26,7 +26,14 @@ {%- endblock head_meta %} {%- block head_title %} - {%- if title %}{{title}} | {% endif -%}{{ _(config.THEME_SITENAME) or _('Invenio') }} + {% set show_title = true %} + {% set sitename = _(config.THEME_SITENAME) or _('Invenio') %} + {% if title %} + {% if title == sitename %} + {% set show_title = false %} + {% endif -%} + {% endif -%} + {%- if show_title and title %}{{title}} | {% endif -%}{{ sitename }} {%- endblock head_title %} {%- block head_links %}