Files
palina-theme/default.hbs

49 lines
1.6 KiB
Handlebars
Raw Normal View History

2026-02-17 17:53:00 +01:00
<!DOCTYPE html>
<html lang="{{@site.lang}}"
x-data="{
theme: localStorage.getItem('theme') || (window.matchMedia('(prefers-color-scheme: light)').matches ? 'light' : 'dark'),
mobileMenuOpen: false,
init() {
$watch('theme', val => {
localStorage.setItem('theme', val);
document.documentElement.setAttribute('data-theme', val);
});
document.documentElement.setAttribute('data-theme', this.theme);
document.documentElement.classList.remove('hidden');
}
}"
:data-theme="theme"
@htmx:after-on-load.window="mobileMenuOpen = false"
class="hidden">
2026-02-17 17:53:00 +01:00
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{meta_title}}</title>
<link rel="stylesheet" href="{{asset "built/screen.css"}}">
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Playfair+Display:wght@700&display=swap" rel="stylesheet">
<script defer src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js"></script>
<script src="https://unpkg.com/htmx.org@2.0.0"></script>
2026-02-17 17:53:00 +01:00
{{ghost_head}}
</head>
<body class="{{body_class}} font-sans antialiased" hx-boost="true">
2026-02-17 17:53:00 +01:00
<div class="min-h-screen flex flex-col">
2026-02-17 17:53:00 +01:00
{{> header}}
<main class="flex-grow">
{{{body}}}
</main>
{{> footer}}
{{> mobile-menu}}
</div>
2026-02-17 17:53:00 +01:00
{{ghost_foot}}
<script src="{{asset "js/ghost-config.js"}}"></script>
2026-02-17 17:53:00 +01:00
<script src="{{asset "js/main.js"}}"></script>
</body>
</html>