feat(theme): 增加favicon配置

这个提交包含在:
2024-08-22 18:32:26 +08:00
未验证
父节点 4c76b9d076
当前提交 41ac5b7998
修改 2 个文件,包含 7 行新增0 行删除
+6
查看文件
@@ -11,6 +11,12 @@ spec:
name: pixel_style name: pixel_style
label: 像素化风格 label: 像素化风格
help: 开启后,将使用像素风格字体及图标。 help: 开启后,将使用像素风格字体及图标。
- $formkit: attachment
name: favicon
label: favicon图片链接
accepts:
- "image/png"
- "image/x-icon"
- $formkit: attachment - $formkit: attachment
name: logo name: logo
label: logo图片链接 label: logo图片链接
@@ -4,6 +4,7 @@
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" type="image/x-icon" th:href="${theme.config.basic.favicon}">
<title th:text="${site.title}"></title> <title th:text="${site.title}"></title>
<link rel="stylesheet" th:href="@{/assets/dist/style.css?version=v1.0.1}" href="./assets/dist/style.css" /> <link rel="stylesheet" th:href="@{/assets/dist/style.css?version=v1.0.1}" href="./assets/dist/style.css" />
</head> </head>