97 lines
3.4 KiB
Twig
97 lines
3.4 KiB
Twig
{% set body_classes = body_class(['header-fixed', 'header-animated', 'header-dark', 'header-transparent', 'sticky-footer']) %}
|
|
{% set grid_size = theme_var('grid-size') %}
|
|
{% set compress = theme_var('production-mode') ? '.min.css' : '.css' %}
|
|
{% use 'blocks/base.html.twig' %}
|
|
|
|
<!DOCTYPE html>
|
|
<html lang="{{ grav.language.getActive ?: grav.config.site.default_lang }}">
|
|
<head>
|
|
{% block head deferred %}
|
|
<meta charset="utf-8" />
|
|
<title>{% if page.title %}{{ page.title|e('html') }} | {% endif %}{{ site.title|e('html') }}</title>
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
{% include 'partials/metadata.html.twig' %}
|
|
|
|
<link rel="icon" type="image/png" href="{{ url('theme://images/favicon.png') }}" />
|
|
<link rel="canonical" href="{{ page.url(true, true) }}" />
|
|
{% endblock head %}
|
|
|
|
{% block stylesheets %}
|
|
{% do assets.addCss('theme://css-compiled/theme'~compress) %}
|
|
{% do assets.addCss('theme://css/custom.css') %}
|
|
{% endblock %}
|
|
|
|
{% block javascripts %}
|
|
{% do assets.addJs('jquery', 101) %}
|
|
<!-- upload -->
|
|
{% do assets.addJs('theme://js/jquery.treemenu.js', {group:'bottom'}) %}
|
|
<script src="https://unpkg.com/infinite-scroll@3/dist/infinite-scroll.pkgd.js"></script>
|
|
{% do assets.addJs('theme://js/site.js', {group:'bottom'}) %}
|
|
{% endblock %}
|
|
|
|
{% block assets deferred %}
|
|
{{ assets.css()|raw }}
|
|
{{ assets.js()|raw }}
|
|
{% endblock %}
|
|
</head>
|
|
|
|
<body id="top" class='{{page.template}}'>
|
|
<div id="page-wrapper">
|
|
{% block header %}
|
|
<header id="header" class="section">
|
|
<nav class="navbar">
|
|
<section class="navbar-section logo">
|
|
{% include 'partials/logo.html.twig' %}
|
|
</section>
|
|
<section class="navbar-section desktop-menu">
|
|
<nav class="dropmenu animated">
|
|
{% block header_navigation %}
|
|
{% include 'partials/navigation.html.twig' %}
|
|
{% endblock %}
|
|
</nav>
|
|
{% if config.plugins.login.enabled and grav.user.username %}
|
|
<span class="login-status-wrapper"><i class="fa fa-user"></i> {% include 'partials/login-status.html.twig' %}</span>
|
|
{% endif %}
|
|
</section>
|
|
</nav>
|
|
</header>
|
|
<div class="mobile-menu">
|
|
<div class="button_container" id="toggle">
|
|
<div class="open">
|
|
<a href="#">
|
|
<img src="/user/themes/vocurations/images/menu_burger.png" alt="menu">
|
|
</a>
|
|
</div>
|
|
<div class="close">
|
|
<a href="#">
|
|
<img src="/user/themes/vocurations/images/CROIX.png" alt="croix">
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|
|
|
|
<main id="start" class="{{page.menu|hyphenize}}">
|
|
{% block hero %}{% endblock %}
|
|
|
|
{% block body %}
|
|
<section id="body-wrapper" class="section">
|
|
{{ block('content_surround') }}
|
|
</section>
|
|
{% endblock %}
|
|
</main>
|
|
</div>
|
|
|
|
{% block footer %}
|
|
{% include 'partials/footer.html.twig' %}
|
|
{% endblock %}
|
|
|
|
{% block bottom %}
|
|
{{ assets.js('bottom')|raw }}
|
|
{% endblock %}
|
|
</body>
|
|
|
|
</html>
|