Skip to content

Commit 6a725ed

Browse files
committed
Mod: code review
1 parent 338bf6f commit 6a725ed

File tree

2 files changed

+10
-7
lines changed
  • upupor-service/src/main/java/com/upupor/service/business/pages/content
  • upupor-web/src/main/resources/templates/content

2 files changed

+10
-7
lines changed

upupor-service/src/main/java/com/upupor/service/business/pages/content/AllContentView.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ protected String pageUrl() {
6161

6262
@Override
6363
protected void seoInfo() {
64-
modelAndView.addObject(CcConstant.SeoKey.TITLE, "全部文章");
65-
modelAndView.addObject(CcConstant.SeoKey.DESCRIPTION, "全部文章");
66-
modelAndView.addObject(CcConstant.SeoKey.BUSINESS_TITLE, "全部文章");
64+
modelAndView.addObject(CcConstant.SeoKey.TITLE, "所有内容");
65+
modelAndView.addObject(CcConstant.SeoKey.DESCRIPTION, "所有内容");
66+
modelAndView.addObject(CcConstant.SeoKey.BUSINESS_TITLE, "所有内容");
6767
}
6868

6969
@Override

upupor-web/src/main/resources/templates/content/type.html

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,13 @@
4343
</div>
4444
</div>
4545
<div class="col-lg-3">
46-
<!-- <div class="card card-body shadow-sm border-bottom border-2 border-top-0 border-start border-end-0 p-2 mb-2">-->
47-
<!-- <div class="lead">文章动态</div>-->
48-
<!-- <div class="text-secondary">[[${businessTitle}]]</div>-->
49-
<!-- </div>-->
46+
<div class="card card-body shadow-sm border-bottom border-2 border-top-0 border-start border-end-0 p-2 mb-2">
47+
<div class="nav flex-column nav-pills" aria-orientation="vertical">
48+
<a th:class="${businessTitle == '所有内容'?'nav-link cv-link active':'nav-link cv-link'}" href="/content/all" title="所有内容">所有内容</a>
49+
<a th:class="${businessTitle == '新内容'?'nav-link cv-link active':'nav-link cv-link'}" href="/content/new" title="新内容">新内容</a>
50+
<a th:class="${businessTitle == '内容有更新'?'nav-link cv-link active':'nav-link cv-link'}" href="/content/recently-edited" title="内容有更新">内容有更新</a>
51+
</div>
52+
</div>
5053
<div th:include="fragments/index::global_search"></div>
5154
<!--全局个人信息卡片-->
5255
<div th:include="fragments/index::global_member_info"></div>

0 commit comments

Comments
 (0)