base.html.twig 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. {% set body_classes = body_class(['header-fixed', 'header-animated', 'header-dark', 'header-transparent', 'sticky-footer']) %}
  2. {% set grid_size = theme_var('grid-size') %}
  3. {% set compress = theme_var('production-mode') ? '.min.css' : '.css' %}
  4. <!DOCTYPE html>
  5. <html lang="{{ grav.language.getActive ?: grav.config.site.default_lang }}">
  6. <head>
  7. {% block head %}
  8. <meta charset="utf-8" />
  9. <title>{% if header.title %}{{ header.title|e('html') }} | {% endif %}{{ site.title|e('html') }}</title>
  10. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  11. <meta name="viewport" content="width=device-width, initial-scale=1">
  12. {% include 'partials/metadata.html.twig' %}
  13. <link rel="icon" type="image/png" href="{{ url('theme://images/favicon.png') }}" />
  14. <link rel="canonical" href="{{ page.url(true, true) }}" />
  15. {% block stylesheets %}
  16. {% do assets.addCss('theme://css-compiled/theme'~compress) %}
  17. {% endblock %}
  18. {{ assets.css()|raw }}
  19. {% block javascripts %}
  20. {% do assets.addJs('jquery', 101) %}
  21. {% do assets.addJs('theme://js/jquery.easing.1.3.js', {group:'bottom'}) %}
  22. {% do assets.addJs('theme://js/imagesloaded.pkgd.min.js', {group:'bottom'}) %}
  23. {% do assets.addJs('theme://js/masonry.pkgd.min.js', {group:'bottom'}) %}
  24. {% do assets.addJs('theme://js/scrollreveal.js', {group:'bottom'}) %}
  25. {% do assets.addJs('theme://js/site.js', {group:'bottom'}) %}
  26. {% endblock %}
  27. {{ assets.js()|raw }}
  28. {% endblock head %}
  29. </head>
  30. <body id="top" >
  31. <div id="page-wrapper" class=" {{page.template}}">
  32. {% block header %}
  33. <header class="section">
  34. <section class="container {{ grid_size }}">
  35. <nav class="navbar">
  36. <a href="/"><h1>{{site.title|capitalize}}</h1>
  37. <h2>{{site.header.status|upper}}</h2></a>
  38. </nav>
  39. <div class="contact">
  40. <img src="user/themes/gilles_acezat/images/contact.svg" alt="">
  41. <h3>Contact</h3>
  42. </div>
  43. {% include 'partials/navigation.html.twig' %}
  44. </section>
  45. <section class="works works-mea">
  46. {% for child in collection %}
  47. {% set mea = child.header.mea == 'true' %}
  48. {% if mea %}
  49. {% include 'partials/blog-list-item.html.twig' with {blog: page, page: child} %}
  50. {% endif %}
  51. {% endfor %}
  52. </section>
  53. <div class="scroll">
  54. <p>scroll</p>
  55. <p>scroll</p>
  56. </div>
  57. </header>
  58. {% endblock %}
  59. <section id="start" class="section">
  60. {% block body %}
  61. <section id="body-wrapper">
  62. <section>
  63. {% block content %}{% endblock %}
  64. </section>
  65. </section>
  66. {% endblock %}
  67. </section>
  68. </div>
  69. {% block bottom %}
  70. {{ assets.js('bottom')|raw }}
  71. {% endblock %}
  72. </body>
  73. </html>