X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/baf72cd841a1277e45d37c1fd3a60bd40feb9d5e..2de9e441eb89a3d4d8fa4384b2092c94519fcaea:/Resources/views/body.html.twig diff --git a/Resources/views/body.html.twig b/Resources/views/body.html.twig index 452f70c..10630ff 100644 --- a/Resources/views/body.html.twig +++ b/Resources/views/body.html.twig @@ -4,54 +4,96 @@ {% endblock %} {% block stylesheets %} - - - {% for size, icon in site_png %} - {# Apple #} - {% if size in [152, 167, 180] %} - {% if size == 180 %} - + {% if description is defined and description %} + + {% endif %} + {% if keywords is defined and keywords %} + + {% endif %} + {% 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' #} - {% stylesheet '@rapsys_air_bundle/css/{reset,irishgrover,labelleaurore,screen}.css' %} - - {% endstylesheet %} + {% stopwatch 'stylesheet' %} + {% stylesheet '@rapsys_air_bundle/css/{reset,droidsans,lemon,notoemoji,screen}.css' %} + + {% endstylesheet %} + {% endstopwatch %} + {% if canonical is defined and canonical %} + + {% endif %} + {% if alternates is defined and alternates %} + {% for lang, alternate in alternates %} + + {% endfor %} + {% endif %} + {% if facebook['metas'] is defined and facebook['metas'] %} + {% for property, contents in facebook['metas'] %} + {% if contents is iterable %} + {% for content in contents %} + + {% endfor %} + {% else %} + + {% endif %} + {% endfor %} + {% endif %} {% endblock %} {% block javascripts %} - {#{% javascript '@RapsysAir/js/*.js' %} - - {% endjavascript %}#} + {% stopwatch 'javascript' %} + {#{% javascript '@RapsysAir/js/*.js' %} + + {% endjavascript %}#} + {% endstopwatch %} {% endblock %} -{% block title %}{{ title }}{% endblock %} +{% block title %}{{ [site.title, section, title]|filter(v => v)|join(' - ') }}{% endblock %} {% block body %} {% block header %} {% endblock %} {% block message %} {# pass an array argument to get the messages of those types (['warning', 'error']) #} {% for label, messages in app.flashes %} {% if messages %} -
+