base.html.twig 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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/imagesloaded.pkgd.min.js', {group:'bottom'}) %}
  22. {% do assets.addJs('theme://js/isotope.pkgd.min.js', {group:'bottom'}) %}
  23. {% do assets.addJs('theme://js/masonry.pkgd.min.js', {group:'bottom'}) %}
  24. {% do assets.addJs('theme://js/site.js', {group:'bottom'}) %}
  25. {% endblock %}
  26. {{ assets.js()|raw }}
  27. {% endblock head %}
  28. </head>
  29. <body id="top">
  30. <div id="page-wrapper" class="{{page.template}}">
  31. {% block header %}
  32. <header>
  33. <section class="container {{ grid_size }}">
  34. <nav class="navbar">
  35. <a href="/"><h1>{{site.title|capitalize}}</h1>
  36. <h2>{{site.header.status|upper}}</h2></a>
  37. </nav>
  38. <div class="contact">
  39. <svg>
  40. <path
  41. transform="matrix(3.2731668,1.8897638,-1.8897638,3.2731668,-1501.4361,-950.09606)"
  42. inkscape:transform-center-x="-3.8790373e-06"
  43. d="m 494.32891,31.578537 -6.59395,3.359786 -7.30945,-1.157703 -5.23299,-5.232988 -1.1577,-7.309449 3.35978,-6.59395 6.59395,-3.359785 7.30945,1.157703 5.23299,5.232988 1.1577,7.309449 z"
  44. inkscape:randomized="0"
  45. inkscape:rounded="0"
  46. inkscape:flatsided="false"
  47. sodipodi:arg2="1.4137167"
  48. sodipodi:arg1="0.78539816"
  49. sodipodi:r2="11.974361"
  50. sodipodi:r1="11.974361"
  51. sodipodi:cy="23.111385"
  52. sodipodi:cx="485.86176"
  53. sodipodi:sides="5"
  54. style="display:inline;opacity:1;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.16906723;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
  55. sodipodi:type="star"/>
  56. </svg>
  57. {% include 'partials/navigation.html.twig' %}
  58. </div>
  59. </section>
  60. <section class="works works-mea">
  61. {% for child in collection %}
  62. {% set mea = child.header.mea == 'true' %}
  63. {% if mea %}
  64. {% include 'partials/blog-list-item.html.twig' with {blog: page, page: child} %}
  65. {% endif %}
  66. {% endfor %}
  67. </section>
  68. <div class="scroll">
  69. <p>scroll</p>
  70. <p>scroll</p>
  71. </div>
  72. </header>
  73. {% endblock %}
  74. <section id="start">
  75. {% block body %}
  76. <section id="body-wrapper">
  77. <section>
  78. {% block content %}{% endblock %}
  79. </section>
  80. </section>
  81. {% endblock %}
  82. </section>
  83. </div>
  84. {% block bottom %}
  85. {{ assets.js('bottom')|raw }}
  86. {% endblock %}
  87. </body>
  88. </html>