Add whole-page template collections and Caddy examples

This commit is contained in:
2026-11-22 12:07:30 +08:00
parent fda4b88959
commit 38f7083b31
31 changed files with 661 additions and 14 deletions
+3 -1
View File
@@ -16,6 +16,7 @@ $header = ($site['header'] ?? []) + SiteDesign::DEFAULT_HEADER;
$footer = SiteDesign::footer($site);
$nav = $header['links'];
$contact = $header['button'];
$theme = $page['theme'] ?? '';
?>
<!doctype html>
<html lang="zh-CN" data-type="<?= $e($kind) ?>" data-buttons="solid" data-motion="on">
@@ -46,6 +47,7 @@ $contact = $header['button'];
<meta name="twitter:card" content="summary_large_image">
<link rel="icon" href="/assets/favicon.png" type="image/png">
<link rel="stylesheet" href="/assets/site.css">
<?php if ($theme !== ''): ?><link rel="stylesheet" href="/assets/page-themes.css"><?php endif ?>
<script src="/assets/jquery-4.0.0.min.js" defer></script>
<script src="/assets/site.js" defer></script>
</head>
@@ -75,7 +77,7 @@ $contact = $header['button'];
<?php endif ?>
</div>
</header>
<main id="main-content" tabindex="-1"><?= $content ?></main>
<main id="main-content"<?= $theme !== '' ? ' class="page-theme theme-' . $e($theme) . '"' : '' ?> tabindex="-1"><?= $content ?></main>
<?= View::fragment('footer', ['footer' => $footer]) ?>
</body>
</html>