feat: logo text custom
This commit is contained in:
@@ -7,6 +7,11 @@ spec:
|
||||
- group: basic
|
||||
label: 基本设置
|
||||
formSchema:
|
||||
- $formkit: text
|
||||
label: logo
|
||||
name: logo
|
||||
value:
|
||||
help: 设置左上角 logo 文本, 不设置默认为 halo 中设置的站点标题
|
||||
- $formkit: checkbox
|
||||
name: pjax_enable
|
||||
label: 启用 PJAX
|
||||
|
||||
@@ -2,7 +2,10 @@
|
||||
<div class="header__inner">
|
||||
<div class="header__logo">
|
||||
<a data-pjax href="/">
|
||||
<div class="logo" th:text="${site.title}">Blog Title</div>
|
||||
<div class="logo"
|
||||
th:text="${#strings.isEmpty(theme.config.basic.logo) ? site.title : theme.config.basic.logo}">
|
||||
Blog Title
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<button
|
||||
|
||||
Reference in New Issue
Block a user