mirror of
https://github.com/halo-dev/theme-earth.git
synced 2025-10-25 04:05:51 +00:00
feat: add setup sidebar profile logo support
This commit is contained in:
@@ -95,9 +95,18 @@ spec:
|
||||
height: 200px
|
||||
name: widgets
|
||||
label: 小部件
|
||||
value: "profile,popular-posts,categories,tags"
|
||||
value: "popular-posts,categories,tags"
|
||||
help: "目前提供的小部件有:profile(站点资料), popular-posts(热门文章), categories(文章分类), tags(文章标签)。你可以随意组合或排序,以逗号隔开。"
|
||||
|
||||
- $formkit: group
|
||||
name: profile
|
||||
value:
|
||||
logo:
|
||||
children:
|
||||
- $formkit: attachment
|
||||
name: logo
|
||||
label: 站点资料 Logo
|
||||
|
||||
- group: footer
|
||||
label: 页脚
|
||||
formSchema:
|
||||
|
||||
2036
templates/assets/dist/style.css
vendored
2036
templates/assets/dist/style.css
vendored
File diff suppressed because one or more lines are too long
@@ -3,13 +3,8 @@
|
||||
th:with="stats = ${siteStatsFinder.getStats()}"
|
||||
>
|
||||
<div class="flex flex-col items-center justify-center gap-4">
|
||||
<div class="relative h-24 w-24">
|
||||
<img th:src="${site.logo}" th:alt="${site.title}" class="h-full w-full rounded-full" />
|
||||
<span
|
||||
class="absolute right-0 bottom-0 flex h-7 w-7 items-center justify-center rounded-full border bg-white p-0.5"
|
||||
>
|
||||
🌚
|
||||
</span>
|
||||
<div th:if="${not #strings.isEmpty(theme.config.sidebar.profile.logo)}" class="relative h-24 w-24">
|
||||
<img th:src="${theme.config.sidebar.profile.logo}" th:alt="${site.title}" class="h-full w-full rounded-full" />
|
||||
</div>
|
||||
<div><h1 class="text-2xl font-medium dark:text-slate-50" th:text="${site.title}"></h1></div>
|
||||
<div th:if="${not #strings.isEmpty(site.subtitle)}">
|
||||
|
||||
Reference in New Issue
Block a user