ateliers55/user/themes/ateliers-55/templates/partials/base.html.twig

59 lines
2.0 KiB
Twig

<!DOCTYPE html>
<html lang="{{ (grav.language.getActive ?: grav.config.site.default_lang)|e }}">
<head>
{% block head %}
<meta charset="utf-8" />
<title>{% if header.title %}{{ header.title|e }} | {% endif %}{{ site.title|e }}</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/logo.png')|e }}" />
<link rel="canonical" href="{{ page.canonical(true)|e }}" />
{% endblock head %}
{% block stylesheets %}
{% do assets.addCss('theme://css/pure.min.css', 100) %}
{% do assets.addCss('theme://css/font-awesome.min.css', 99) %}
{% do assets.addCss('theme://css/custom.css', 98) %}
{% do assets.addCss('theme://css/swiper.bundle.css', 97) %}
{% do assets.addCss('theme://css/styles.css', 96) %}
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" rel="stylesheet">
{% endblock %}
{% block javascripts %}
{% do assets.addJs('theme://js/jquery.min.js', 100) %}
<script src="https://cdn.jsdelivr.net/npm/gsap@3.12.5/dist/gsap.min.js"></script>
<script src="https://unpkg.com/@barba/core@2.9.7/dist/barba.umd.js"></script>
{% do assets.addJs('theme://js/swiper-bundle.min.js', 98) %}
{% do assets.addJs('theme://js/script.js', 97) %}
{% endblock %}
{% block assets deferred %}
{{ assets.css()|raw }}
{{ assets.js()|raw }}
{% endblock %}
</head>
<body id="top" class="{{ page.header.body_classes|e }}" data-barba="wrapper">
{% block header %}
{% include 'partials/header.html.twig' %}
{% include 'partials/nav.html.twig' %}
{% include 'partials/about.html.twig' %}
{% endblock %}
{% block body %}
{% include 'partials/articles-list.html.twig' %}
<div data-barba="container">
{% block content %}{% endblock %}
</div>
{% endblock %}
{% block bottom %}
{{ assets.js('bottom')|raw }}
{% endblock %}
</body>
</html>