-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbase.html
78 lines (77 loc) · 2.42 KB
/
base.html
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
{{ define "base" }}
<!DOCTYPE html>
<html lang="en">
<head>
<meta hx-preserve="true" charset="UTF-8" />
<meta
hx-preserve="true"
name="viewport"
content="width=device-width, initial-scale=1"
/>
<script
async
hx-preserve="true"
src="https://analytics.eu.umami.is/script.js"
data-website-id="90ba5459-dc23-4ea8-a21f-829ec7170ecf"
></script>
<script
hx-preserve="true"
src="https://unpkg.com/[email protected]"
integrity="sha384-L6OqL9pRWyyFU3+/bjdSri+iIphTN/bvYyM37tICVyOJkWZLpP2vGn6VUEXgzg6h"
crossorigin="anonymous"
></script>
<link
hx-preserve="true"
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@picocss/pico@next/css/pico.min.css"
/>
<script
hx-preserve="true"
src="https://unpkg.com/htmx.org/dist/ext/head-support.js"
></script>
<script
hx-preserve="true"
src="https://unpkg.com/[email protected]"
integrity="sha384-+Uth1QzYJsTjnS5SXVN3fFO4I32Y571xIuv53WJ2SA7y5/36tKU1VCutONAmg5eH"
crossorigin="anonymous"
></script>
<script
hx-preserve="true"
src="https://cdn.jsdelivr.net/npm/[email protected]/notyf.min.js"
integrity="sha384-uuNfwJfjOG2ukYi4eAB11/t3lP4Zjf75a3UhgkLzEpiX8JpJfacpG7Ye+0tiVMxT"
crossorigin="anonymous"
></script>
<script hx-preserve="true">
addEventListener('DOMContentLoaded', (event) => {
window.notyf = new Notyf({
duration: 10000,
ripple: false,
dismissible: true,
});
document.addEventListener('htmx:responseError', function (e) {
notyf.error(e.detail.xhr.response);
});
});
</script>
<link
hx-preserve="true"
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/notyf.min.css"
integrity="sha384-snpJ3knpH6avB6cP1vPkNdmRzCYaCpom/3TNOyvo189BiogXYXQfXkyYpZ2/xADs"
crossorigin="anonymous"
/>
<link
hx-preserve="true"
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/flexboxgrid/6.3.1/flexboxgrid.min.css"
integrity="sha512-YHuwZabI2zi0k7c9vtg8dK/63QB0hLvD4thw44dFo/TfBFVVQOqEG9WpviaEpbyvgOIYLXF1n7xDUfU3GDs0sw=="
crossorigin="anonymous"
/>
<link hx-preserve="true" rel="stylesheet" href="/static/app.css" />
{{ template "head" . }}
</head>
<body hx-history="false" hx-ext="head-support">
{{ template "body" . }}
</body>
</html>
{{ end }}