Initial commit
This commit is contained in:
45
kirby-baukasten-main/site/snippets/layout.with-taxi.php
Normal file
45
kirby-baukasten-main/site/snippets/layout.with-taxi.php
Normal file
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
/** @var Kirby\Cms\Page $page
|
||||
* @var Kirby\Cms\Site $site
|
||||
* @var Kirby\Cms\App $kirby */
|
||||
|
||||
if (json_decode(env('REQUIRES_LOGIN')) && !$kirby->user()) {
|
||||
go('/panel');
|
||||
} ?>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="<?= $kirby->language()?->code() ?>">
|
||||
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
|
||||
<?php snippet('seo/head') ?>
|
||||
|
||||
<link rel="icon" href="/favicon.svg" />
|
||||
<link rel="mask-icon" href="/favicon.svg" color="#000000" />
|
||||
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
|
||||
<meta name="theme-color" content="#000000">
|
||||
|
||||
<?= vite([
|
||||
'src/styles/index.css',
|
||||
'src/index.ts'
|
||||
]) ?>
|
||||
</head>
|
||||
|
||||
<body class="min-h-screen antialiased overflow-x-clip">
|
||||
<?php snippet('core/skip-nav') ?>
|
||||
<?php snippet('core/nav') ?>
|
||||
<div data-taxi>
|
||||
<div class="flex flex-col" data-taxi-view>
|
||||
<main class="flex-grow">
|
||||
<div id="main"></div>
|
||||
<?= $slot ?>
|
||||
</main>
|
||||
<?php snippet('core/footer') ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php snippet('seo/schemas') ?>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user