Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
chengzhongxue committed Nov 7, 2023
1 parent 2312d7a commit 12d56d2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
8 changes: 0 additions & 8 deletions settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,6 @@ spec:
label: 公安备案
placeholder: 请输入公安备案号
help: 格式:皖公网安备 xxxxxxxx 号
- group: picture
label: 不展示图库分类
formSchema:
- $formkit: textarea
name: groups
label: 不展示图库分类
help: 请输入不展示的图库分组photo-group,可以填入多个photo-group,以任意字符隔开,请看文档:
value:

- group: about
label: 关于
Expand Down
5 changes: 2 additions & 3 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@
<div id="wrapper">
<!-- Header -->
<!-- Main -->
<div id="main" th:with="groups=${theme.config.picture.groups}">
<div id="main">
<th:block th:if="${#strings.isEmpty(param.photo_group_name)}">
<th:block th:each="photo : ${photoFinder.listAll()}"
th:if="${not #strings.contains(groups,photo.spec.groupName)}">
<th:block th:each="photo : ${photoFinder.listAll()}">
<th:block th:replace="~{macro/photo :: photo(${photo})}"/>
</th:block>
</th:block>
Expand Down
4 changes: 1 addition & 3 deletions templates/modules/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@ <h1><a href="/?preview-theme=theme-timeplus"><strong>[[${theme.config.basics.zmk
<span class="discription">[[${theme.config.basics.zmkiabouts}]]</span>
<nav>
<ul>
<li class="nav-item"
th:with="groups=${theme.config.picture.groups}">
<li class="nav-item">
<a class="icon solid fa-info-circle nav-item-name">分类</a>
<ul id="groups" class="nav-item-child">
<li th:each="group : ${photoFinder.groupBy()}"
th:if="${not #strings.contains(groups,group.metadata.name)}"
class="category-level-0 category-parent"
th:group="${group.metadata.name}">
<a th:onclick="go([[${group.metadata.name}]])"
Expand Down

0 comments on commit 12d56d2

Please sign in to comment.