esphome-docs/_templates/layout.html

53 lines
2.6 KiB
HTML
Raw Normal View History

2018-12-31 13:17:43 +01:00
{% extends 'alabaster/layout.html' %}
2019-02-17 12:28:53 +01:00
{%- block doctype %}
<!DOCTYPE html>
{% endblock %}
{%- block extrahead %}
2019-03-05 20:33:51 +01:00
<link rel="stylesheet" href="{{ pathto('_static/custom.css', 1) }}?hash={{ custom_css_hash }}" type="text/css" />
<link rel="apple-touch-icon" sizes="180x180" href="/_static/apple-touch-icon.png">
2019-02-17 12:28:53 +01:00
<link rel="shortcut icon" href="/_static/favicon.ico">
<link rel="icon" type="image/png" sizes="512x512" href="/_static/favicon-512x512.png">
2019-02-18 10:34:45 +01:00
<link rel="icon" type="image/png" sizes="256x256" href="/_static/favicon-256x256.png">
2019-02-17 12:28:53 +01:00
<link rel="icon" type="image/png" sizes="192x192" href="/_static/favicon-192x192.png">
<link rel="icon" type="image/png" sizes="128x128" href="/_static/favicon-128x128.png">
<link rel="icon" type="image/png" sizes="32x32" href="/_static/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/_static/favicon-16x16.png">
<link rel="manifest" href="/_static/site.webmanifest">
<link rel="mask-icon" href="/_static/safari-pinned-tab.svg" color="#646464">
<meta name="apple-mobile-web-app-title" content="ESPHome">
<meta name="application-name" content="ESPHome">
<meta name="msapplication-TileColor" content="#dfdfdf">
<meta name="msapplication-config" content="/_static/browserconfig.xml">
<meta name="theme-color" content="#dfdfdf">
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
2019-02-09 09:28:58 +01:00
<meta property="og:site_name" content="ESPHome">
2019-02-17 13:46:01 +01:00
<meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9">
{% endblock %}
2018-12-31 13:17:43 +01:00
{% block footer %}
<div class="footer">
<a href="/misc/privacy.html">Privacy Policy</a>
</div>
2019-01-02 14:49:02 +01:00
<div id="upgrade-footer">
A new version has been release since you last visited this page: {{ release }} 🎉
<a id="upgrade-footer-changelog" href="/changelog/v{{ version }}.0.html">View Changelog</a>
2019-01-02 14:49:02 +01:00
</div>
2018-12-31 13:17:43 +01:00
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-113203480-2"></script>
2019-02-18 10:34:45 +01:00
<script>window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments);}gtag('js', new Date());gtag('config', 'UA-113203480-2', {'anonymize_ip': true});</script>
2019-01-02 14:49:02 +01:00
<script>
2019-02-23 20:17:11 +01:00
var old = window.localStorage.getItem("version");
if (old === null) { window.localStorage.setItem("version", "{{ version }}");
} else if (old !== "{{ version }}") {
2019-01-02 14:49:02 +01:00
document.getElementById("upgrade-footer").classList.add("not-hidden");
document.getElementById("upgrade-footer-changelog").addEventListener('click', function () {
2019-02-23 20:17:11 +01:00
window.localStorage.setItem("version", "{{ version }}");
2019-01-02 14:49:02 +01:00
});
}
</script>
2018-12-31 13:17:43 +01:00
{% endblock %}