Skip to content

Commit 9f07278

Browse files
committed
Fix header
1 parent 21070eb commit 9f07278

14 files changed

Lines changed: 33 additions & 28 deletions

File tree

src-11ty/_includes/base.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
/>
1515
{% if additionalScripts %}{{ additionalScripts }}{% endif %}
1616
<script type="module" src="/src/utils/dark-mode.ts"></script>
17+
<script type="module" src="/src/components/app-header.ts"></script>
1718
<style>
1819
@import url('/src/styles/shoelace.css');
1920
@import url('/src/styles/theme.css');
@@ -23,6 +24,7 @@
2324
</style>
2425
</head>
2526
<body class="wa-palette-shoelace wa-theme-shoelace">
27+
<app-header></app-header>
2628
{{ content }}
2729
</body>
2830
</html>

src-11ty/_includes/home.html

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{% capture full_title -%} {%- if title -%} {{ title }} – Device Toolbox {%- else
2+
-%} Device Toolbox {%- endif -%} {%- endcapture %}
3+
<!doctype html>
4+
<html lang="en">
5+
<head>
6+
<meta charset="utf-8" />
7+
<title>{{ full_title }}</title>
8+
<link rel="icon" type="image/png" href="/favicon.png" />
9+
<meta name="description" content="{{ description }}" />
10+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
11+
<link
12+
rel="stylesheet"
13+
href="https://early.webawesome.com/webawesome@3.0.0-beta.6/dist/styles/webawesome.css"
14+
/>
15+
{% if additionalScripts %}{{ additionalScripts }}{% endif %}
16+
<script type="module" src="/src/utils/dark-mode.ts"></script>
17+
<style>
18+
@import url('/src/styles/shoelace.css');
19+
@import url('/src/styles/theme.css');
20+
body {
21+
margin: 0;
22+
}
23+
</style>
24+
</head>
25+
<body class="wa-palette-shoelace wa-theme-shoelace">
26+
{{ content }}
27+
</body>
28+
</html>

src-11ty/home-assistant-connect-zwa-2/index.njk

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,5 @@ permalink: /home-assistant-connect-zwa-2/index.html
66
---
77

88
<script type="module" src="/src/pages/zwa2-details.ts"></script>
9-
<script type="module" src="/src/components/app-header.ts"></script>
109

11-
<app-header></app-header>
1210
<zwa2-details></zwa2-details>

src-11ty/home-assistant-connect-zwa-2/install-portable.njk

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,12 @@ description: Install portable Z-Wave firmware on your Home Assistant Connect ZWA
55
permalink: /home-assistant-connect-zwa-2/install-portable/index.html
66
---
77

8-
<script type="module" src="/src/components/app-header.ts"></script>
98
<script type="module" src="/src/pages/zwa2-install-portable.ts"></script>
109
<script
1110
type="module"
1211
src="https://home-assistant.github.io/zwa2-toolbox/standalone/install-esphome-firmware.js"
1312
></script>
1413

15-
<app-header></app-header>
1614
<zwa2-install-portable></zwa2-install-portable>
1715

1816
<div class="installer-wrapper" id="installer-container">

src-11ty/home-assistant-connect-zwa-2/install.njk

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ additionalScripts: |
77
<script type="module" src="https://home-assistant.github.io/zwa2-toolbox/standalone/install-esp-bridge-firmware.js"></script>
88
---
99

10-
<script type="module" src="/src/components/app-header.ts"></script>
1110
<script type="module" src="/src/pages/zwa2-install-original.ts"></script>
1211

1312
<style>
@@ -61,7 +60,6 @@ additionalScripts: |
6160
}
6261
</style>
6362

64-
<app-header></app-header>
6563
<zwa2-install-original></zwa2-install-original>
6664

6765
<div class="installer-wrapper" id="installer-container">

src-11ty/home-assistant-connect-zwa-2/use-poe.njk

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,12 @@ description: Connect your ZWA-2 via PoE for optimal placement
55
permalink: /home-assistant-connect-zwa-2/use-poe/index.html
66
---
77

8-
<script type="module" src="/src/components/app-header.ts"></script>
98
<script type="module" src="/src/pages/zwa2-install-poe.ts"></script>
109
<script
1110
type="module"
1211
src="https://home-assistant.github.io/zwa2-toolbox/standalone/install-esp-bridge-firmware.js"
1312
></script>
1413

15-
<app-header></app-header>
1614
<zwa2-install-poe></zwa2-install-poe>
1715

1816
<div class="installer-wrapper" id="installer-container">

src-11ty/improv.njk

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,5 @@ permalink: /improv.html
66
---
77

88
<script type="module" src="/src/pages/improv-details.ts"></script>
9-
<script type="module" src="/src/components/app-header.ts"></script>
109

11-
<app-header></app-header>
1210
<improv-details></improv-details>

src-11ty/index.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
layout: base.html
2+
layout: home.html
33
title: Device Toolbox
44
description: Flash firmware, configure devices, and manage your smart home hardware directly from your browser
55
permalink: /index.html

src-11ty/vpe/index.njk

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,5 @@ permalink: /vpe/index.html
66
---
77

88
<script type="module" src="/src/pages/vpe-details.ts"></script>
9-
<script type="module" src="/src/components/app-header.ts"></script>
109

11-
<app-header></app-header>
1210
<vpe-details></vpe-details>

src-11ty/vpe/install.njk

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,5 @@ additionalScripts: |
88
---
99

1010
<script type="module" src="/src/pages/vpe-install.ts"></script>
11-
<script type="module" src="/src/components/app-header.ts"></script>
1211

13-
<app-header></app-header>
1412
<vpe-install></vpe-install>

0 commit comments

Comments
 (0)