base.html.twig 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <!DOCTYPE html>
  2. <html lang="{{ (grav.language.getActive ?: grav.config.site.default_lang)|e }}">
  3. <head>
  4. {% block head %}
  5. <meta charset="utf-8" />
  6. <title>{% if header.title %}{{ header.title|e }} | {% endif %}{{ site.title|e }}</title>
  7. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  8. <meta name="viewport" content="width=device-width, initial-scale=1">
  9. {% include 'partials/metadata.html.twig' %}
  10. <link rel="icon" type="image/png" href="{{ url('theme://images/logo.png')|e }}" />
  11. <link rel="canonical" href="{{ page.canonical(true)|e }}" />
  12. {# <script src="https://unpkg.com/pagedjs/dist/paged.polyfill.js"></script> #}
  13. {% endblock head %}
  14. {% block stylesheets %}
  15. {% do assets.addCss('https://unpkg.com/purecss@1.0.0/build/pure-min.css', 100) %}
  16. {% do assets.addCss('https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css', 99) %}
  17. {% do assets.addCss('theme://css/pagedjs.css', 98) %}
  18. {% do assets.addCss('theme://css/custom.css', 97) %}
  19. {% do assets.addCss('theme://fonts/fonts.css', 96) %}
  20. {% do assets.addCss('theme://css/mep_carnet.css', 95) %}
  21. {% endblock %}
  22. {% block javascripts %}
  23. {% do assets.addJs('jquery', 100) %}
  24. {% do assets.addJs('theme://js/parsing.js', { group: 'bottom' }) %}
  25. {% do assets.addJs('theme://js/paged.polyfill.js', { group: 'bottom' }) %}
  26. {% do assets.addJs('theme://js/layout.js', { group: 'bottom' }) %}
  27. {% endblock %}
  28. {% block assets deferred %}
  29. {{ assets.css()|raw }}
  30. {{ assets.js()|raw }}
  31. {% endblock %}
  32. </head>
  33. <body id="top" class="{{ page.header.body_classes|e }}">
  34. {% block body %}
  35. <section id="body">
  36. <div>
  37. {% block content %}{% endblock %}
  38. </div>
  39. </section>
  40. {% endblock %}
  41. {% block bottom %}
  42. {{ assets.js('bottom')|raw }}
  43. {% endblock %}
  44. </body>
  45. </html>