2017-12-29 12:43:05 +00:00
< header class = "md-header" data-md-component = "header" >
2018-02-11 08:18:20 +00:00
<!-- Yandex.Metrika counter -->
< script type = "text/javascript" >
(function (d, w, c) {
(w[c] = w[c] || []).push(function() {
try {
w.yaCounter18343495 = new Ya.Metrika2({
id:18343495,
clickmap:true,
trackLinks:true,
accurateTrackBounce:true,
webvisor: {% if builder != "singlehtml" %}true{% else %}false{% endif %}
});
} catch(e) { }
});
var n = d.getElementsByTagName("script")[0],
s = d.createElement("script"),
f = function () { n.parentNode.insertBefore(s, n); };
s.type = "text/javascript";
s.async = true;
s.src = "https://mc.yandex.ru/metrika/tag.js";
if (w.opera == "[object Opera]") {
d.addEventListener("DOMContentLoaded", f, false);
} else { f(); }
})(document, window, "yandex_metrika_callbacks2");
< / script >
< noscript >
< div > < img src = "https://mc.yandex.ru/watch/18343495" style = "position:absolute; left:-9999px;" alt = "" / > < / div >
< / noscript >
<!-- /Yandex.Metrika counter -->
2017-12-29 12:43:05 +00:00
< nav class = "md-header-nav md-grid" >
< div class = "md-flex" >
< div class = "md-flex__cell md-flex__cell--shrink" >
2018-02-21 18:44:33 +00:00
< a href = "/" title = "{{ config.site_name }}" class = "md-header-nav__button md-logo" >
2017-12-29 12:43:05 +00:00
{% if config.theme.logo.icon %}
< i class = "md-icon" > {{ config.theme.logo.icon }}< / i >
{% else %}
2018-02-21 18:44:33 +00:00
< img src = "{{ base_url }}/{{ config.theme.logo }}" width = "40" height = "40" >
2017-12-29 12:43:05 +00:00
{% endif %}
< / a >
< / div >
< div class = "md-flex__cell md-flex__cell--shrink" >
< label class = "md-icon md-icon--menu md-header-nav__button" for = "drawer" > < / label >
< / div >
< div class = "md-flex__cell md-flex__cell--stretch" >
< div class = "md-flex__ellipsis md-header-nav__title" data-md-component = "title" >
{% block site_name %}
{% if config.site_name == page.title %}
{{ config.site_name }}
{% else %}
< span class = "md-header-nav__topic" >
{{ config.site_name }}
< / span >
< span class = "md-header-nav__topic" >
{{ page.title }}
< / span >
{% endif %}
{% endblock %}
< / div >
< / div >
< div class = "md-flex__cell md-flex__cell--shrink" >
< / div >
< div class = "md-flex__cell md-flex__cell--shrink" >
{% block search_box %}
{% if "search" in config["plugins"] %}
< label class = "md-icon md-icon--search md-header-nav__button" for = "search" > < / label >
{% include "partials/search.html" %}
{% endif %}
{% endblock %}
< / div >
{% if config.repo_url %}
< div class = "md-flex__cell md-flex__cell--shrink" >
< div class = "md-header-nav__source" >
2018-02-21 18:44:33 +00:00
< script type = "text/javascript" >
if (window.location.pathname.indexOf('/ru/') >= 0) {
url = window.location.pathname.replace('/ru/', '/en/');
text = "< svg xmlns = \"http://www.w3.org/2000/svg\" width = \"50\" height = \"30\" viewBox = \"0,0 25 , 15 \ " style = \"border:1px solid # eee ; margin: . 8rem 0 0 -1 . 25rem ; \ " > \n" +
"< rect width = \"25\" height = \"15\" fill = \"#00247d\" > < / rect > \n" +
"< path d = \"M 0 , 0 L 25 , 15 M 25 , 0 L 0 , 15 \ " stroke = \"#fff\" stroke-width = \"3\" > < / path > \n" +
"< path d = \"M 12 . 5 , 0 V 15 M 0 , 7 . 5 H 25 \ " stroke = \"#fff\" stroke-width = \"5\" > < / path > \n" +
"< path d = \"M 12 . 5 , 0 V 15 M 0 , 7 . 5 H 25 \ " stroke = \"#cf142b\" stroke-width = \"3\" > < / path > \n" +
"< / svg > ";
title = "Switch to English"
}else{
url = window.location.pathname.replace('/en/', '/ru/');
text = "< svg xmlns = \"http://www.w3.org/2000/svg\" viewBox = \"0 0 10 6 \ " width = \"50\" height = \"30\" style = \"border: 1px solid # eee ; margin: . 8rem 0 0 -1 . 25rem \ " > \n" +
"< rect fill = \"#fff\" width = \"10\" height = \"3\" > < / rect > \n" +
"< rect fill = \"#d52b1e\" y = \"3\" width = \"10\" height = \"3\" > < / rect > \n" +
"< rect fill = \"#0039a6\" y = \"2\" width = \"10\" height = \"2\" > < / rect > \n" +
"< / svg > ";
title = "Переключить на русский язык"
}
document.write('< a href = "' + url + '" title = "' + title + '" class = "md-flex__ellipsis md-header-nav__title" > ' + text + '< / a > ')
< / script >
2017-12-29 12:43:05 +00:00
< / div >
< / div >
{% endif %}
< / div >
< / nav >
< / header >