From: Raphaƫl Gertz Date: Wed, 28 Jul 2021 07:24:13 +0000 (+0200) Subject: Change title layout X-Git-Tag: 0.2.4~19 X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/airbundle/commitdiff_plain/b65ef06fb2ed3b8c5ca1d19176031868040ef606 Change title layout Add canonical url lang Switch to complete 5 characters locales Replace direct link with about page in footer Add copyright link Remove rapsys_air_organizer_regulation for user without organizer role Fix alternates link generation --- diff --git a/Resources/views/body.html.twig b/Resources/views/body.html.twig index 8f37879..6fea7b4 100644 --- a/Resources/views/body.html.twig +++ b/Resources/views/body.html.twig @@ -4,8 +4,8 @@ {% endblock %} {% block stylesheets %} - {% if description is defined and description %} - + {% if page.description is defined and page.description %} + {% endif %} {% if keywords is defined and keywords %} @@ -36,11 +36,25 @@ {% endstylesheet %} {% endstopwatch %} {% if canonical is defined and canonical %} - + {% endif %} {% if alternates is defined and alternates %} - {% for alternate in alternates %} - + {% for lang, alternate in alternates %} + + {% endfor %} + {% endif %} + {% if ogps is defined and ogps %} + {% for property, content in ogps %} + + {% endfor %} + {% for property, contents in facebooks %} + {% if contents is iterable %} + {% for content in contents %} + + {% endfor %} + {% else %} + + {% endif %} {% endfor %} {% endif %} {% endblock %} @@ -51,7 +65,7 @@ {% endjavascript %}#} {% endstopwatch %} {% endblock %} -{% block title %}{{ title }}{% endblock %} +{% block title %}{{ [site.title, page.section, page.title]|filter(v => v)|join(' - ') }}{% endblock %} {% block body %} {% block header %}