-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
61 lines (59 loc) · 2 KB
/
index.html
File metadata and controls
61 lines (59 loc) · 2 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
<!DOCTYPE html>
<html lang="en">
<head>
{{ partial "header.html" . }}
{{ partial "home/head.html" . }}
<link rel="preload" as="image" href="/images/hero/slide-1.webp" type="image/webp" fetchpriority="high">
</head>
<body class="home-page bg-gray-50/50 text-slate-800 font-sans antialiased">
{{ partial "icons-sprite.html" . }}
{{ partial "skip-link.html" . }}
{{ partial "home/nav.html" . }}
<script>
(function () {
var header = document.querySelector('body.home-page > header');
if (header) {
document.documentElement.style.setProperty('--home-nav-height', header.offsetHeight + 'px');
}
})();
</script>
<main id="main-content" class="home-sections" tabindex="-1">
{{ partial "home/hero.html" . }}
{{- range hugo.Data.home.categories -}}
{{ partial "home/category-section.html" (dict "category" . "Site" $.Site) }}
{{- end -}}
{{ partial "home/testimonials.html" . }}
{{ partial "home/cta-coffee.html" . }}
{{ partial "home/marquee.html" . }}
{{ partial "home/why.html" . }}
{{ partial "home/faq.html" . }}
</main>
{{ partial "home/footer.html" . }}
{{ partial "ladybug.html" . }}
{{ partial "cookie-consent.html" . }}
{{ partial "home/search-palette.html" . }}
<script src="/js/site.min.js" defer></script>
<script src="/js/home.min.js" defer></script>
<script>
(function () {
if (!document.getElementById('ladybug-container')) return;
var fired = false;
function loadLadybug() {
if (fired) return;
fired = true;
var link = document.createElement('link');
link.rel = 'stylesheet';
link.href = '/css/ladybug.css';
document.head.appendChild(link);
var s = document.createElement('script');
s.src = '/js/ladybug.min.js';
s.defer = true;
document.body.appendChild(s);
}
['scroll', 'click', 'keydown', 'touchstart'].forEach(function (ev) {
window.addEventListener(ev, loadLadybug, { once: true, passive: true });
});
})();
</script>
</body>
</html>