mirror of
https://github.com/halo-dev/theme-earth.git
synced 2025-11-30 01:02:18 +08:00
41 lines
1.6 KiB
HTML
41 lines
1.6 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en" th:fragment="html (header,content,head,footer,sidebar,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=2" />
|
|
<title th:text="${site.title}"></title>
|
|
<meta name="description" content="TODO" />
|
|
<link rel="stylesheet" th:href="@{/assets/dist/style.css}" href="./assets/dist/style.css" />
|
|
<script th:src="@{/assets/dist/main.iife.js}"></script>
|
|
<th:block th:if="${head != null}">
|
|
<th:block th:replace="${head}" />
|
|
</th:block>
|
|
</head>
|
|
<body x-data="{ overlayMenu: false }">
|
|
<th:block th:if="${header != null}">
|
|
<th:block th:replace="${header}" />
|
|
</th:block>
|
|
<th:block th:if="${header == null}">
|
|
<th:block th:replace="~{modules/header :: header(isHome = true)}" />
|
|
</th:block>
|
|
<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:if="${sidebar != null}">
|
|
<th:block th:replace="${sidebar}" />
|
|
</th:block>
|
|
<th:block th:if="${sidebar == null}">
|
|
<th:block th:replace="~{modules/sidebar :: sidebar(prepend = null)}" />
|
|
</th:block>
|
|
</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>
|