Files
theme-earth/templates/modules/layout.html
Ryan Wang 87ececb908 feat: add overlay menu for mobile device
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-10-06 22:06:43 +08:00

40 lines
1.2 KiB
HTML

<!DOCTYPE html>
<html lang="en" th:fragment="html (content,head,footer,contentClass)">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
/>
<title th:text="${site.title}"></title>
<link
rel="stylesheet"
th:href="@{/assets/dist/style.css}"
href="./assets/dist/style.css"
/>
<script th:src="@{/assets/dist/main.iife.js}" defer></script>
<th:block th:if="${head != null}">
<th:block th:replace="${head}" />
</th:block>
</head>
<body x-data="{ overlayMenu: false }">
<th:block th:replace="modules/header" />
<section class="container mx-auto"></section>
<section
class="container mx-auto mt-6 grid grid-cols-4 gap-6"
th:classappend="${contentClass}"
>
<div class="col-span-4 sm:col-span-3">
<th:block th:replace="${content}" />
</div>
<th:block th:replace="modules/sidebar" />
</section>
<th:block th:replace="modules/footer" />
<th:block th:if="${footer != null}">
<th:block th:replace="${footer}" />
</th:block>
<th:block th:replace="modules/overlay-menu" />
</body>
</html>