X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/airbundle/blobdiff_plain/634aa0019953deac8762d564b55712fa98c54768..b97de545e924cd936c76c23147649298e6bc53a6:/Resources/views/body.html.twig diff --git a/Resources/views/body.html.twig b/Resources/views/body.html.twig index 6dca55d..6fea7b4 100644 --- a/Resources/views/body.html.twig +++ b/Resources/views/body.html.twig @@ -4,29 +4,31 @@ {% endblock %} {% block stylesheets %} - {% if description is defined and description %} - + {% if page.description is defined and page.description %} + {% endif %} {% if keywords is defined and keywords %} {% endif %} - - - {% for size, icon in site.png %} - {# Apple #} - {% if size in [120, 152, 167, 180] %} - {% if size == 180 %} - + {% if site is defined and site %} + + + {% for size, icon in site.png %} + {# Apple #} + {% if size in [120, 152, 167, 180] %} + {% if size == 180 %} + + {% endif %} + + {# Windows #} + {% elseif size in [70, 150, 310] %} + + {# Others #} + {% else %} + {% endif %} - - {# Windows #} - {% elseif size in [70, 150, 310] %} - - {# Others #} - {% else %} - - {% endif %} - {% endfor %} + {% endfor %} + {% endif %} {# stylesheet '//fonts.googleapis.com/css?family=Irish+Grover' '//fonts.googleapis.com/css?family=La+Belle+Aurore' '@RapsysAirBundle/Resources/public/css/{reset,screen}.css' #} {% stopwatch 'stylesheet' %} {% stylesheet '@rapsys_air_bundle/css/{reset,droidsans,screen}.css' %} @@ -34,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 %} @@ -49,20 +65,26 @@ {% endjavascript %}#} {% endstopwatch %} {% endblock %} -{% block title %}{{ title }}{% endblock %} +{% block title %}{{ [site.title, page.section, page.title]|filter(v => v)|join(' - ') }}{% endblock %} {% block body %} {% block header %}