grav-theme-libretic/templates/partials/base.html.twig

102 lines
3.8 KiB
Twig
Raw Normal View History

{% set theme_config = attribute(config.themes, config.system.pages.theme) %}
2015-01-15 19:15:54 +01:00
<!DOCTYPE html>
2019-03-21 23:50:46 +01:00
<html lang="{{ grav.language.getActive ?: grav.config.site.default_lang }}">
2015-01-15 19:15:54 +01:00
<head>
{% block head %}
<meta charset="utf-8" />
<title>{% if header.title %}{{ header.title }} | {% endif %}{{ site.title }}</title>
{% include 'partials/metadata.html.twig' %}
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="icon" type="image/png" href="{{ theme_url }}/images/favicon.png" />
{% block stylesheets %}
{% do assets.addCss('theme://css-compiled/nucleus.css',102) %}
{% do assets.addCss('theme://css-compiled/template.css',101) %}
{% do assets.addCss('theme://css/custom.css',100) %}
{% do assets.addCss('theme://css/font-awesome.min.css',100) %}
{% do assets.addCss('theme://css/slidebars.min.css') %}
{% do assets.addCss('theme://css/slideme.css') %}
{% if browser.getBrowser == 'msie' and browser.getVersion == 10 %}
{% do assets.addCss('theme://css/nucleus-ie10.css') %}
{% endif %}
{% if browser.getBrowser == 'msie' and browser.getVersion >= 8 and browser.getVersion <= 9 %}
{% do assets.addCss('theme://css/nucleus-ie9.css') %}
{% do assets.addCss('theme://css/pure-0.5.0/grids-min.css') %}
{% do assets.addCss('theme://js/html5shiv-printshiv.min.js') %}
{% endif %}
{% endblock %}
{% block javascripts %}
2015-02-24 02:00:25 +01:00
{% do assets.add('jquery', 101) %}
2015-01-15 19:15:54 +01:00
{% do assets.addJs('theme://js/modernizr.custom.71422.js',100) %}
{% do assets.addJs('theme://js/deliver.js') %}
{% do assets.addJs('theme://js/slidebars.min.js') %}
{% do assets.addJs('theme://js/jquery.slideme2.js') %}
{% if theme_config.sticky_menu.enabled %}
{% do assets.addJs('theme://js/jquery-scrolltofixed-min.js') %}
{% do assets.addJs('theme://js/fixed-header.js') %}
{% endif %}
2015-01-15 19:15:54 +01:00
{% endblock %}
2019-03-21 23:50:46 +01:00
{% block assets deferred %}
{{ assets.css()|raw }}
{{ assets.js()|raw }}
{% endblock %}
2015-01-15 19:15:54 +01:00
{% endblock head%}
</head>
<body id="top" class="{{ page.header.body_classes }}">
<div id="sb-site">
{% block header %}
<header id="header">
2015-01-16 14:39:31 +01:00
<div class="logo">
2015-02-20 19:34:08 +01:00
<h3><a href="{{ base_url_absolute }}">{{ config.site.title }}</a></h3>
2015-01-15 19:15:54 +01:00
{% block social %}
{% include 'partials/social.html.twig' %}
{% endblock %}
</div>
<div id="navbar">
{% block header_extra %}{% endblock %}
{% block header_navigation %}
{% include 'partials/navigation.html.twig' %}
{% endblock %}
2015-01-22 13:28:29 +01:00
{% include 'partials/search.html.twig' %}
2015-01-23 13:20:59 +01:00
<span class="panel-activation sb-toggle-left navbar-left menu-btn fa fa-bars"></span>
2015-01-15 19:15:54 +01:00
</div>
</header>
{% endblock %}
{% block showcase %}{% endblock %}
{% block body %}
<section id="body" class="{{ class }}">
{% block content %}{% endblock %}
2016-01-04 12:11:17 +01:00
{% block footer %}
{% include 'modular/footer.html.twig' %}
{% endblock %}
2015-01-15 19:15:54 +01:00
</section>
{% endblock %}
2016-01-04 12:11:17 +01:00
2015-01-15 19:15:54 +01:00
</div>
<div class="sb-slidebar sb-left sb-width-thin">
<div id="panel">
{% include 'partials/navigation.html.twig' %}
</div>
</div>
{% block bottom %}
2019-03-21 23:50:46 +01:00
{{ assets.js('bottom')|raw }}
2015-01-15 19:15:54 +01:00
<script>
$(function () {
$(document).ready(function() {
$.slidebars({
hideControlClasses: true,
scrollLock: true
});
});
});
</script>
{% endblock %}
</body>
</html>