base.html.twig 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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 font for this theme #}
  23. {% do assets.add('theme://font/fontwebkit.css',100) %}
  24. {# Custom styles for this theme #}
  25. {% do assets.add('theme://css/styles.css',100) %}
  26. {{ assets.css() }}
  27. {% endblock %}
  28. {% endblock head %}
  29. </head>
  30. <body class="{{bodyclass}}">
  31. <div id="container">
  32. {# include the header + navigation #}
  33. {% include 'partials/header.html.twig' %}
  34. <div id="center" class="row fullwidth">
  35. <div class="large-12 columns">
  36. {% block content %}{% endblock %}
  37. </div>
  38. </div>
  39. {% block bottom %}{% endblock %}
  40. {# include the footer#}
  41. {% include 'partials/footer.html.twig' %}
  42. </div>
  43. {% block javascripts %}
  44. {% do assets.add('theme://bower_components/jquery/dist/jquery.min.js', 101) %}
  45. {% do assets.add('theme://bower_components/foundation/js/foundation.min.js') %}
  46. {% do assets.add('theme://bower_components/imagesloaded/imagesloaded.pkgd.min.js') %}
  47. {% do assets.add('theme://bower_components/masonry/dist/masonry.pkgd.min.js') %}
  48. {% do assets.add('theme://js/dist/script.min.js') %}
  49. {{ assets.js() }}
  50. {% endblock %}
  51. </body>
  52. </html>