82 lines
3.3 KiB
Twig
82 lines
3.3 KiB
Twig
<!DOCTYPE html>
|
|
<html lang="{{ grav.language.getActive ?: grav.config.site.default_lang }}">
|
|
<head>
|
|
{% set theme_config = attribute(config.themes, config.system.pages.theme) %}
|
|
{% 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">
|
|
|
|
{% if theme_config.favicon %}
|
|
{% set favicon_file = (theme_config.favicon|first).name %}
|
|
<link rel="icon" type="{{ theme_config.favicon|first.type }}" href="{{ url('theme://images/favicon/' ~ favicon_file) }}" />
|
|
{% else %}
|
|
<link rel="icon" type="image/png" href="{{ url('theme://assets/favicon.png') }}" />
|
|
{% endif %}
|
|
|
|
{% block stylesheets %}
|
|
<link rel='stylesheet' id='twentyfifteen-fonts-css' href='https://fonts.googleapis.com/css?family=Noto+Sans%3A400italic%2C700italic%2C400%2C700%7CNoto+Serif%3A400italic%2C700italic%2C400%2C700%7CInconsolata%3A400%2C700&subset=latin%2Clatin-ext' type='text/css' media='all' />
|
|
<link rel='stylesheet' id='twentyfifteen-style-css' href='{{ url('theme://css/style.css') }}' type='text/css' media='all' />
|
|
{% do assets.addCss('theme://assets/fontawesome/css/all.css') %}
|
|
{% do assets.addCss('theme://css/ksite.css') %}
|
|
{% endblock %}
|
|
|
|
{% block javascripts %}
|
|
{% do assets.add('jquery',101) %}
|
|
{% endblock %}
|
|
|
|
{% block color_scheme %}
|
|
{% if theme_config.current_preset and theme_config.current_preset != 'default' %}
|
|
{% include 'partials/color_scheme.html.twig' %}
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block assets deferred %}
|
|
{{ assets.css()|raw }}
|
|
{{ assets.js()|raw }}
|
|
{% endblock %}
|
|
|
|
{% endblock %}
|
|
</head>
|
|
|
|
<body class="home blog">
|
|
<div id="page" class="hfeed site">
|
|
{% block sidebar %}
|
|
{% include 'partials/sidebar.html.twig' %}
|
|
{% endblock %}
|
|
{% block body %}
|
|
<div id="content" class="site-content">
|
|
<div id="primary" class="content-area">
|
|
<main id="main" class="site-main" role="main">
|
|
{% block content %}
|
|
{% endblock %}
|
|
</main>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|
|
<footer id="colophon" class="site-footer" role="contentinfo">
|
|
<div class="site-info">
|
|
© {{ "now"|date('Y') }} {{ config.theme.footer }}
|
|
</div>
|
|
</footer>
|
|
|
|
</div>
|
|
|
|
{% block javascripts_bottom %}
|
|
{{ assets.js('bottom')|raw }}
|
|
<script type='text/javascript'>
|
|
/* <![CDATA[ */
|
|
var screenReaderText = {"expand":"<span class=\"screen-reader-text\">expand child menu<\/span>","collapse":"<span class=\"screen-reader-text\">collapse child menu<\/span>"};
|
|
/* ]]> */
|
|
</script>
|
|
|
|
<!--[if lte IE 8]><script type='text/javascript' src='{{ url('theme://js/html5.js') }}'></script><![endif]-->
|
|
<script type='text/javascript' src='{{ url('theme://js/jquery-migrate.min.js') }}'></script>
|
|
<script type='text/javascript' src='{{ url('theme://js/functions.js') }}'></script>
|
|
<script type='text/javascript' src='{{ url('theme://js/skip-link-focus-fix.js') }}'></script>
|
|
{% endblock %}
|
|
|
|
</body>
|
|
</html>
|