Files
gilles-acezat/user/themes/gilles_acezat/templates/partials/base.html.twig
T
2019-05-03 12:05:54 +02:00

96 lines
3.5 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' %}
<!DOCTYPE html>
<html lang="{{ grav.language.getActive ?: grav.config.site.default_lang }}">
<head>
{% block head %}
<meta charset="utf-8" />
<title>{% if header.title %}{{ header.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) }}" />
{% block stylesheets %}
{% do assets.addCss('theme://css-compiled/theme'~compress) %}
{% endblock %}
{{ assets.css()|raw }}
{% block javascripts %}
{% do assets.addJs('jquery', 101) %}
{% do assets.addJs('theme://js/jquery.easing.1.3.js', {group:'bottom'}) %}
{% do assets.addJs('theme://js/imagesloaded.pkgd.min.js', {group:'bottom'}) %}
{% do assets.addJs('theme://js/masonry.pkgd.min.js', {group:'bottom'}) %}
{% do assets.addJs('theme://js/multipleFilterMasonry.js', {group:'bottom'}) %}
{% do assets.addJs('theme://js/jquery.mCustomScrollbar.js', {group:'bottom'}) %}
{% do assets.addJs('theme://js/jquery.mousewheel.min.js', {group:'bottom'}) %}
{% do assets.addJs('theme://js/site.js', {group:'bottom'}) %}
{% endblock %}
{{ assets.js()|raw }}
{% endblock head %}
</head>
<body id="top" class="{{page.template}}">
<div id="page-wrapper" class=" {{page.template}}">
{% block header %}
<header class="section">
<div class="head">
<nav class="title">
<a href="/"><h1>{{site.title|capitalize}}</h1>
<h2>{{site.header.status|upper}}</h2></a>
</nav>
<div class="contact">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
<polygon points="34.2,87.4 12.3,65.5 12.3,34.5 34.2,12.6 65.2,12.6 87.1,34.5 87.1,65.5 65.2,87.4" fill="black"/>
</svg>
<h3>Contact</h3>
{% include 'partials/navigation.html.twig' %}
</div>
</div>
<div class="works works-mea">
{% for child in collection %}
{% set mea = child.header.mea == 'true' %}
{% if mea %}
{% include 'partials/blog-list-mea.html.twig' with {blog: page, page: child} %}
{% endif %}
{% endfor %}
</div>
<div class="scroll">
<p>scroll</p>
</div>
</header>
{% endblock %}
<section id="start" class="section">
<div class="cat-list btn-toolbar">
<ul>
{% include 'partials/taxonomylist.html.twig' with {base_url: my_url, taxonomy: 'category', children_only: true} %}
</ul>
</div>
{% block body %}
<section id="body-wrapper">
<section>
{% block content %}{% endblock %}
</section>
</section>
{% endblock %}
</section>
</div>
{% block bottom %}
{{ assets.js('bottom')|raw }}
{% endblock %}
</body>
</html>