templates: redo <title> to be "page name | global name" (#69561)
gitea-wip/publik-base-theme/pipeline/head This commit looks good Details
gitea/publik-base-theme/pipeline/head Something is wrong with the build of this commit Details

This commit is contained in:
Frédéric Péters 2023-01-08 14:46:23 +01:00
parent 974ff93f5e
commit 856796b8e0
3 changed files with 3 additions and 3 deletions

View File

@ -90,7 +90,7 @@
{% end_skeleton_extra_placeholder %}
{% endblock %}
{% block title %} - {% if render_skeleton %}{% skeleton_extra_placeholder title %}{% firstof page_title site_title %}{% end_skeleton_extra_placeholder %}{% else %}{{page.title}}{% endif %}{% endblock %}
{% block title %}{% if render_skeleton %}{% skeleton_extra_placeholder title %}{% end_skeleton_extra_placeholder %}{% else %}{{page.title}}{% endif %} | {% firstof global_title site_title "Compte Citoyen" %}{% endblock %}
{% block header-title %}
{% get_asset "header:logo" as header_logo %}

View File

@ -18,7 +18,7 @@
<script src="{% static "portal-agent/js/publik.js" %}"></script>
{% endblock %}
{% block page-title %}{% firstof site_title "Publik" %} - {{ page.title }}{% endblock %}
{% block page-title %}{{ page.title }} | {% firstof site_title "Publik" %}{% endblock %}
{% block site-title %}{% firstof site_title "Publik" %}{% endblock %}
{% block footer %}Combo — Copyright © Entrouvert{% endblock %}
{% block logout-url %}{{ logout_url }}{% endblock %}

View File

@ -5,7 +5,7 @@
<meta charset="UTF-8"><!-- 🔥 -->
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% firstof global_title site_title "Compte Citoyen" %} {% block title %}{% endblock %}</title>
<title>{% block title %}{% firstof global_title site_title "Compte Citoyen" %}{% endblock %}</title>
{% if site_base %}<link rel="preconnect" href="{{ site_base }}">{% endif %}
{% if meta_robots %}
<meta name="robots" content="{{ meta_robots }}" />