-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbase.html
More file actions
114 lines (109 loc) · 3.32 KB
/
Copy pathbase.html
File metadata and controls
114 lines (109 loc) · 3.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
{%- if title -%}
{% set full_title = title + " – Device Toolbox" %}
{%- else -%}
{% set full_title = "Device Toolbox" %}
{%- endif -%}
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>{{ full_title }}</title>
<link rel="icon" type="image/png" href="/favicon.png" />
<meta name="description" content="{{ description }}" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- Open Graph meta tags -->
<meta property="og:title" content="{{ full_title }}" />
<meta property="og:description" content="{{ description }}" />
{%- if image %}
<meta property="og:image" content="https://toolbox.openhomefoundation.org{{ image }}" />
{%- endif %}
<meta property="og:type" content="website" />
<link rel="stylesheet" href="/src/styles/main.css" />
<!-- Plausible analytics -->
<script
async
src="https://plausible.openhomefoundation.org/js/pa-EkXAQjbzUhwwqEPi6iRK5.js"
></script>
<script>
window.plausible =
window.plausible ||
function () {
(plausible.q = plausible.q || []).push(arguments);
};
plausible.init =
plausible.init ||
function (i) {
plausible.o = i || {};
};
plausible.init();
</script>
</head>
<body class="wa-palette-shoelace wa-theme-shoelace">
<div class="app-header">
<header>
<a href="/" class="logo-section" aria-label="Device Toolbox Home">
<picture>
<source
srcset="/ohf_dark.svg"
media="(prefers-color-scheme: dark)"
/>
<img
src="/open-home-foundation.svg"
alt="Open Home Foundation"
class="logo"
/>
</picture>
</a>
<nav class="nav-links">
<a
href="https://www.openhomefoundation.org/"
class="nav-link"
target="_blank"
>
Open Home Foundation
</a>
<a
href="https://www.home-assistant.io/"
class="nav-link"
target="_blank"
>
Home Assistant
</a>
</nav>
</header>
</div>
{{ content | safe }}
<footer class="app-footer">
<p>
This website uses
<a
href="https://www.openhomefoundation.org/blog/making-our-web-analytics-open-source-with-plausible/"
rel="noopener"
>privacy-first analytics</a
>
to help us improve the site. You can view all data in our
<a
href="https://plausible.openhomefoundation.org/toolbox.openhomefoundation.org"
rel="noopener"
>public dashboard</a
>.
</p>
</footer>
<script>
(function () {
const updateTheme = () => {
const prefersDark = window.matchMedia(
'(prefers-color-scheme: dark)'
).matches;
document.documentElement.classList.toggle('wa-dark', prefersDark);
document.body.classList.toggle('wa-dark', prefersDark);
document.body.classList.toggle('wa-light', !prefersDark);
};
updateTheme();
window
.matchMedia('(prefers-color-scheme: dark)')
.addEventListener('change', updateTheme);
})();
</script>
</body>
</html>