X-Git-Url: https://git.rapsys.eu/blogbundle/blobdiff_plain/71c7bfea3fba239721455861c4f430a3e7ec424a..0189d94eedbc0896039113bd087f1542605026d6:/templates/_base.html.twig diff --git a/templates/_base.html.twig b/templates/_base.html.twig new file mode 100644 index 0000000..0b103c0 --- /dev/null +++ b/templates/_base.html.twig @@ -0,0 +1,165 @@ + + + + {% block meta %}{% endblock %} + {% block title %}{{ [title.page, title.section, title.site]|filter(v => v)|join(' - ') }}{% endblock %} + {% block stylesheet %} + + {% if description is defined and description %} + + {% endif %} + {% if keywords is defined and keywords %} + + {% endif %} + {% if icon is defined and icon %} + + + {% for size, icon in icon.png %} + {# Apple #} + {% if size in [120, 152, 167, 180] %} + {% if size == 180 %} + + {% endif %} + + {# Windows #} + {% elseif size in [70, 150, 310] %} + + {# Others #} + {% else %} + + {% endif %} + {% endfor %} + {% endif %} + {% stopwatch 'stylesheet' %} + {# stylesheet '//fonts.googleapis.com/css?family=Irish+Grover' '//fonts.googleapis.com/css?family=La+Belle+Aurore' '@RapsysBlogBundle/css/{reset,screen}.css' #} + {% stylesheet '@RapsysBlog/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 prev is defined and prev %} + + {% endif %} + {% if next is defined and next %} + + {% endif %} + {% if facebook is defined and facebook %} + {% for property, contents in facebook %} + {% if contents is iterable %} + {% for content in contents %} + + {% endfor %} + {% else %} + + {% endif %} + {% endfor %} + {% endif %} + {% 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 %} +
+
    + {% for message in messages %} +
  • {{ message }}
  • + {% endfor %} +
+
+ {% endif %} + {% endfor %} + {% endblock %} + {#{% block sidebar %}{% endblock %}#} + {% block content %} +
+
+ {% block content_title %}

{{ title.page }}

{% endblock %}> +

{{ description }}

+
+
+ {% endblock %} + {% block footer %} + + {% endblock %} + {% endblock %} + {% block javascript %} + {% stopwatch 'javascript' %} + {#{% javascript '@RapsysBlog/js/*.js' %} + + {% endjavascript %}#} + {% endstopwatch %} + {% endblock %} + +