feat(theme): logo配置功能提交

这个提交包含在:
2024-08-22 15:39:06 +08:00 未验证
父节点 026ed1f3c9
当前提交 4c76b9d076
修改 7 个文件,包含 44 行新增29 行删除
+6 -6
查看文件
@@ -1,11 +1,11 @@
<header class="header">
<header class="header" xmlns:th="http://www.w3.org/1999/xhtml">
<div th:fragment="header" th:with="menu = ${menuFinder.getPrimary()}">
<div class="header__inner">
<div class="header__logo">
<a href="/" style="text-decoration: none">
<div class="logo" th:text="${site.title}">Blog Title</div>
</a>
</div>
<a class="logo" href="/" style="text-decoration: none">
<img class="icon" th:if="${not #strings.isEmpty(theme.config.basic.logo)}" th:src="${theme.config.basic.logo}" alt="Logo" />
<div class="text" th:if="${not #strings.isEmpty(theme.config.basic.title)}" th:text="${theme.config.basic.title}"></div>
</a>
<div class="dividing"></div>
<button
id="search-button"
type="button"
+2 -2
查看文件
@@ -5,7 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title th:text="${site.title}"></title>
<link rel="stylesheet" th:href="@{/assets/dist/style.css?version=v1.0.0}" href="./assets/dist/style.css" />
<link rel="stylesheet" th:href="@{/assets/dist/style.css?version=v1.0.1}" href="./assets/dist/style.css" />
</head>
<!-- 根据情况判断是否添加开启像素化样式 -->
<body class="main" th:classappend="${theme.config.basic.pixel_style} ? 'pixel_style' : '' ">
@@ -26,6 +26,6 @@
<th:block th:replace="${footer}" />
</th:block>
</div>
<script th:src="@{/assets/dist/main.iife.js?version=v1.0.0}"></script>
<script th:src="@{/assets/dist/main.iife.js?version=v1.0.1}"></script>
</body>
</html>