Howto/themes/grav-theme-howto/templates/partials/base.html.twig

69 lines
2.0 KiB
Twig

{% set theme_config = attribute(config.themes, config.system.pages.theme) %}
<!DOCTYPE html>
<html lang="{{ grav.language.getActive ?: theme_config.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/style.css') %}
{% do assets.addCss('theme://css/media-queries.css') %}
{% endblock %}
{{ assets.css()|raw }}
{% block javascripts %}
{% do assets.addJs('jquery', 100) %}
{% do assets.addJs('theme://js/howto.js', { group:'bottom' }) %}
{% endblock %}
{{ assets.js()|raw }}
{% endblock head%}
</head>
<body id="top" class="{{ page.header.body_classes }}">
{% block header %}
<div class="header">
<div class="wrapper padding">
<a class="logo left" href="{{ base_url == '' ? '/' : base_url }}">
<!--i class="fa fa-rebel"></i-->
<!--{{ config.site.title }}-->
</a>
{% block header_navigation %}
<nav id="main-nav" class="main-nav">
{% include 'partials/navigation.html.twig' %}
</nav>
{% endblock %}
</div>
</div>
{% endblock %}
{% block body %}
<section id="body">
<div class="">
<div class="body-top"></div>
{% block content %}{% endblock %}
</div>
</section>
{% endblock %}
{% block footer %}
{% include 'partials/footer.html.twig' %}
{% endblock %}
{% block bottom %}
{{ assets.js('bottom') }}
{% endblock %}
</body>
</html>