cpred/_layouts/default.html
Florian fae93a92de
All checks were successful
Deploy Jekyll site to Pages / build (push) Successful in 5m57s
Implement PWA features: add service worker, manifest, and offline page; enhance footer and header navigation
2025-03-18 21:51:15 +01:00

21 lines
511 B
HTML

<!DOCTYPE html>
<html lang="de">
<head>
{% include head.html %}
</head>
<body>
{% include header.html %}
<main class="container">
{{ content }}
</main>
{% include footer.html %}
<script>
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register("{{ /assets/js/service-worker.js | relative_url }}")
.then(() => console.log("✅ Service Worker registriert"))
.catch(error => console.log("❌ Service Worker Fehler:", error));
}
</script>
</body>
</html>