您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

57 行
1.7KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  6. <title>{% block title %}Welcome!{% endblock %}</title>
  7. {% if block('meta_title') is defined %}
  8. {% set block_meta_title = block('meta_title') %}
  9. {% if block_meta_title is not empty %}
  10. <meta name="title" content="{{ block_meta_title|raw }}"/>
  11. {% endif %}
  12. {% endif %}
  13. {% if block('meta_description') is defined %}
  14. {% set block_meta_description = block('meta_description') %}
  15. {% if block_meta_description is not empty %}
  16. <meta name="description" content="{{ block_meta_description|raw }}"/>
  17. {% endif %}
  18. {% endif %}
  19. <meta property="og:title" content="{% block ogTitle %}{{ 'meta.title'|trans }}{% endblock %}"/>
  20. <meta property="og:type" content="{% block ogType %}website{% endblock %}"/>
  21. <meta property="og:image"
  22. content="{% block ogImage %}{{ asset('bundles/mwebcore/img/facebook-banner.jpg', null, true) }}{% endblock %}"/>
  23. <meta property="og:description" content="{% block ogDesciption %}{{ 'meta.description'|trans }}{% endblock %}"/>
  24. <meta property="og:url" content="{{ app.request.uri }}"/>
  25. <link rel="icon" type="image/png" href="{{ asset('assets/img/favicon.png') }}"/>
  26. {% block stylesheets %}{% endblock %}
  27. </head>
  28. <body>
  29. {% block body %}
  30. <body id="default">
  31. <header>
  32. <h1>Projet par défaut La clic !</h1>
  33. {% include "block/nav.html.twig" %}
  34. </header>
  35. <div class="container">
  36. {% block content %}
  37. {% endblock %}
  38. </div>
  39. <footer></footer>
  40. </body>
  41. {% endblock %}
  42. {% block javascripts %}{% endblock %}
  43. </body>
  44. </html>