base.html.twig 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <!doctype html>
  2. <html class="no-js" lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. {% block head %}
  6. <meta charset="utf-8">
  7. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  8. <meta name="viewport" content="width=device-width, initial-scale=1">
  9. {% if header.description %}
  10. <meta name="description" content="{{ header.description }}">
  11. {% else %}
  12. <meta name="description" content="{{ site.description }}">
  13. {% endif %}
  14. {% if header.robots %}
  15. <meta name="robots" content="{{ header.robots }}">
  16. {% endif %}
  17. <link rel="icon" type="image/png" href="{{ theme_url }}/images/favicon.png">
  18. <title>{% if header.title %}{{ header.title|e('html') }} | {% endif %}{{ site.title|e('html') }}</title>
  19. {% block stylesheets %}
  20. {# Bootstrap core CSS #}
  21. {% do assets.add('theme://app/bower_components/foundation/css/foundation.min.css',101) %}
  22. {# Custom styles for this theme #}
  23. {% do assets.add('theme://css/styles.css',100) %}
  24. {{ assets.css() }}
  25. {% endblock %}
  26. {% endblock head %}
  27. </head>
  28. <body>
  29. {# include the header + navigation #}
  30. {% include 'partials/header.html.twig' %}
  31. <div id="center" class="row">
  32. <div class="large-12 columns grid">
  33. {% block content %}{% endblock %}
  34. </div>
  35. </div>
  36. <!-- {% block bottom %}{% endblock %} -->
  37. {# include the footer#}
  38. {% include 'partials/footer.html.twig' %}
  39. {% block javascripts %}
  40. {% do assets.add('theme://bower_components/jquery/dist/jquery.min.js', 101) %}
  41. {% do assets.add('theme://bower_components/foundation/js/foundation.min.js') %}
  42. {% do assets.add('theme://bower_components/masonry/dist/masonry.pkgd.min.js') %}
  43. {% do assets.add('theme://js/script.min.js') %}
  44. {{ assets.js() }}
  45. {% endblock %}
  46. </body>
  47. </html>