Files
gilles-acezat/user/themes/gilles_acezat/templates/partials/base.html.twig
T
2019-02-19 18:56:33 +01:00

101 lines
3.9 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">
<svg>
<path
transform="matrix(3.2731668,1.8897638,-1.8897638,3.2731668,-1501.4361,-950.09606)"
inkscape:transform-center-x="-3.8790373e-06"
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"
inkscape:randomized="0"
inkscape:rounded="0"
inkscape:flatsided="false"
sodipodi:arg2="1.4137167"
sodipodi:arg1="0.78539816"
sodipodi:r2="11.974361"
sodipodi:r1="11.974361"
sodipodi:cy="23.111385"
sodipodi:cx="485.86176"
sodipodi:sides="5"
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"
sodipodi:type="star"/>
</svg>
{% include 'partials/navigation.html.twig' %}
</div>
</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>