Files
gilles-acezat/user/themes/gilles_acezat/templates/partials/base.html.twig
T
2019-02-21 01:55:47 +01:00

84 lines
2.8 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/imagesloaded.pkgd.min.js', {group:'bottom'}) %}
{% do assets.addJs('theme://js/isotope.pkgd.min.js', {group:'bottom'}) %}
{% do assets.addJs('theme://js/masonry.pkgd.min.js', {group:'bottom'}) %}
{% do assets.addJs('theme://js/site.js', {group:'bottom'}) %}
{% endblock %}
{{ assets.js()|raw }}
{% endblock head %}
</head>
<body id="top">
<div id="page-wrapper" class="{{page.template}}">
{% block header %}
<header>
<section class="container {{ grid_size }}">
<nav class="navbar">
<a href="/"><h1>{{site.title|capitalize}}</h1>
<h2>{{site.header.status|upper}}</h2></a>
</nav>
<div class="contact">
<img src="user/themes/gilles_acezat/images/contact.svg" alt="">
<h3>Contact</h3>
</div>
{% include 'partials/navigation.html.twig' %}
</section>
<section class="works works-mea">
{% for child in collection %}
{% set mea = child.header.mea == 'true' %}
{% if mea %}
{% include 'partials/blog-list-item.html.twig' with {blog: page, page: child} %}
{% endif %}
{% endfor %}
</section>
<div class="scroll">
<p>scroll</p>
<p>scroll</p>
</div>
</header>
{% endblock %}
<section id="start">
{% block body %}
<section id="body-wrapper">
<section>
{% block content %}{% endblock %}
</section>
</section>
{% endblock %}
</section>
</div>
{% block bottom %}
{{ assets.js('bottom')|raw }}
{% endblock %}
</body>
</html>