From 541e7623545b8540abb95901e10c2e18a10098e5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Wed, 24 Feb 2021 01:30:31 +0100 Subject: [PATCH] Adapt template to new context tree Add creator link Add canonical and alternates links --- Resources/views/body.html.twig | 65 ++++++++++++++++++++-------------- 1 file changed, 39 insertions(+), 26 deletions(-) diff --git a/Resources/views/body.html.twig b/Resources/views/body.html.twig index 6dca55d..8f37879 100644 --- a/Resources/views/body.html.twig +++ b/Resources/views/body.html.twig @@ -10,23 +10,25 @@ {% 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' %} @@ -53,15 +55,18 @@ {% block body %} {% block header %}