base.html.twig 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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.treemenu.js', {group:'bottom'}) %}
  22. {% do assets.addJs('theme://js/site.js', {group:'bottom'}) %}
  23. {% endblock %}
  24. {{ assets.js()|raw }}
  25. {% endblock head %}
  26. </head>
  27. <body id="top">
  28. <div id="page-wrapper">
  29. {% block header %}
  30. <header>
  31. <section class="container {{ grid_size }}">
  32. <nav class="navbar">
  33. <section class="navbar-section logo">
  34. <a href="/"><h1>{{site.title|capitalize}}</h1></a>
  35. <h2>{{site.header.status|upper}}</h2>
  36. </section>
  37. <section class="navbar-section desktop-menu">
  38. {% if config.plugins.login.enabled and grav.user.username %}
  39. <span class="login-status-wrapper"><i class="fa fa-user"></i> {% include 'partials/login-status.html.twig' %}</span>
  40. {% endif %}
  41. </section>
  42. </nav>
  43. <div class="contact">
  44. <svg>
  45. <path
  46. transform="matrix(3.2731668,1.8897638,-1.8897638,3.2731668,-1501.4361,-950.09606)"
  47. inkscape:transform-center-x="-3.8790373e-06"
  48. 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"
  49. inkscape:randomized="0"
  50. inkscape:rounded="0"
  51. inkscape:flatsided="false"
  52. sodipodi:arg2="1.4137167"
  53. sodipodi:arg1="0.78539816"
  54. sodipodi:r2="11.974361"
  55. sodipodi:r1="11.974361"
  56. sodipodi:cy="23.111385"
  57. sodipodi:cx="485.86176"
  58. sodipodi:sides="5"
  59. 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"
  60. sodipodi:type="star"/>
  61. </svg>
  62. {% include 'partials/navigation.html.twig' %}
  63. </div>
  64. </section>
  65. </header>
  66. {% endblock %}
  67. <section id="start">
  68. {% block body %}
  69. <section id="body-wrapper">
  70. <section>
  71. {% block content %}{% endblock %}
  72. </section>
  73. </section>
  74. {% endblock %}
  75. </section>
  76. </div>
  77. {% block bottom %}
  78. {{ assets.js('bottom')|raw }}
  79. {% endblock %}
  80. </body>
  81. </html>