fix: bugs

This commit is contained in:
mjsoftware 2024-02-05 13:00:15 +08:00
parent a20a516c52
commit 74315be24c
3 changed files with 12 additions and 3 deletions

View File

@ -928,6 +928,15 @@ spec:
label: 开启 label: 开启
- value: false - value: false
label: 关闭 label: 关闭
- $formkit: radio
name: enable_journals_owner
label: 瞬间页面-开启作者显示
value: false
options:
- value: true
label: 开启
- value: false
label: 关闭
- $formkit: attachment - $formkit: attachment
name: journals_share_image name: journals_share_image
label: 瞬间页面-瞬间分享背景图 label: 瞬间页面-瞬间分享背景图

View File

@ -1,6 +1,6 @@
<!DOCTYPE html> <!DOCTYPE html>
<th:block xmlns:th="https://www.thymeleaf.org" <th:block xmlns:th="https://www.thymeleaf.org"
th:insert="~{common/layout :: layout (title = ${#strings.defaultString(theme.config.page_config.links_title, '友链')} + ' - ' + ${site.title}, canonical = @{/links}, content = ~{::content}, isPost = false)}" th:insert="~{common/layout :: layout (title = ${#strings.defaultString(theme.config.page_config.links_title, '友链')} + ' - ' + ${site.title}, canonical = @{/links}, content = ~{::content}, isPost = false)}"
th:with="baseEnableComment = ${!#strings.isEmpty(theme.config.page_config.link_comment_id) && theme.config.page_config.link_enable_comment}"> th:with="baseEnableComment = ${!#strings.isEmpty(theme.config.page_config.link_comment_id) && theme.config.page_config.link_enable_comment}">
<th:block th:fragment="content" <th:block th:fragment="content"
th:with="defaultAvatar = ${#strings.defaultString(theme.config.page_config.links_default_avatar, #theme.assets('/img/avatar.svg'))}"> th:with="defaultAvatar = ${#strings.defaultString(theme.config.page_config.links_default_avatar, #theme.assets('/img/avatar.svg'))}">
@ -8,7 +8,7 @@
<div th:if="${!#strings.isEmpty(theme.config.page_config.links_thumbnail)}" class="card-image cover-image" th:style="'background-image: url(' + ${theme.config.page_config.links_thumbnail} + ')'"> <div th:if="${!#strings.isEmpty(theme.config.page_config.links_thumbnail)}" class="card-image cover-image" th:style="'background-image: url(' + ${theme.config.page_config.links_thumbnail} + ')'">
</div> </div>
<div class="card-content main"> <div class="card-content main">
<h1 class="title" th:text="${#strings.defaultString(theme.config.page_config.links_title, '友链')} + ' + ${contributor.displayName} + '的小伙伴们'"></h1> <h1 class="title" th:text="${#strings.defaultString(theme.config.page_config.links_title, '友链')} + ' - ' + ${contributor.displayName} + '的小伙伴们'"></h1>
<div class="main-content"> <div class="main-content">
<th:block th:each="group : ${groups}"> <th:block th:each="group : ${groups}">
<div th:if="${!#lists.isEmpty(group.links)}" class="links"> <div th:if="${!#lists.isEmpty(group.links)}" class="links">

View File

@ -12,7 +12,7 @@
<div th:if="${isEmpty}" class="card-empty">暂无分类</div> <div th:if="${isEmpty}" class="card-empty">暂无分类</div>
<div th:unless="${isEmpty}" class="card-content"> <div th:unless="${isEmpty}" class="card-content">
<ul class="menu-list"> <ul class="menu-list">
<th:block th:fragment="categories (categories, noLimit)"> <th:block th:fragment="categories (categories)">
<li th:each="category,itemIndex : ${categories}" th:unless="${itemIndex.index >= num}"> <li th:each="category,itemIndex : ${categories}" th:unless="${itemIndex.index >= num}">
<a class="level is-marginless" th:href="${category.status.permalink}"> <a class="level is-marginless" th:href="${category.status.permalink}">
<span class="level-item" th:text="${category.spec.displayName}"></span> <span class="level-item" th:text="${category.spec.displayName}"></span>