Skip to content

Commit ea7da17

Browse files
committed
👽 删除halo默认主题,已经放弃这个主题了。
1 parent 5e2a3d3 commit ea7da17

File tree

144 files changed

+5
-25903
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

144 files changed

+5
-25903
lines changed

src/main/java/cc/ryanc/halo/web/controller/admin/CategoryController.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,7 @@ public String saveCategory(@ModelAttribute Category category){
6363
@ResponseBody
6464
public boolean checkCateUrlExists(@RequestParam("cateUrl") String cateUrl){
6565
Category category = categoryService.findByCateUrl(cateUrl);
66-
if(null!=category){
67-
return true;
68-
}else{
69-
return false;
70-
}
66+
return null!=category;
7167
}
7268

7369
/**

src/main/java/cc/ryanc/halo/web/controller/admin/PostController.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -269,10 +269,6 @@ public boolean updateSummary(@PathParam("postSummary") Integer postSummary){
269269
@ResponseBody
270270
public boolean checkUrlExists(@PathParam("postUrl") String postUrl){
271271
Post post = postService.findByPostUrl(postUrl,HaloConst.POST_TYPE_POST);
272-
if(null!=post){
273-
return true;
274-
}else{
275-
return false;
276-
}
272+
return null!=post;
277273
}
278274
}

src/main/java/cc/ryanc/halo/web/controller/admin/TagController.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,7 @@ public String saveTag(@ModelAttribute Tag tag){
6565
@ResponseBody
6666
public boolean checkTagUrlExists(@RequestParam("tagUrl") String tagUrl){
6767
Tag tag = tagService.findByTagUrl(tagUrl);
68-
if(null!=tag){
69-
return true;
70-
}else{
71-
return false;
72-
}
68+
return null!=tag;
7369
}
7470

7571
/**

src/main/java/cc/ryanc/halo/web/controller/core/BaseController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public abstract class BaseController {
1111
/**
1212
* 定义默认主题
1313
*/
14-
public static String THEME = "halo";
14+
public static String THEME = "anatole";
1515

1616
/**
1717
* 根据主题名称渲染页面

src/main/resources/templates/themes/Anatole/post.ftl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<span class="date">${post.postDate?string("yyyy-MM-dd")}</span>
2929
<i class="fa fa-comment-o"></i>
3030
<a href="/archives/${post.postUrl}#comment_widget">Comments</a>
31-
<if post.tags??>
31+
<if post.tags?size gt 0>
3232
<i class="fa fa-tag"></i>
3333
<#list post.tags as tag>
3434
<a href="/tags/${tag.tagUrl}" class="tag">&nbsp;${tag.tagName}</a>

src/main/resources/templates/themes/Halo/archives.ftl

Lines changed: 0 additions & 23 deletions
This file was deleted.

src/main/resources/templates/themes/Halo/index.ftl

Lines changed: 0 additions & 76 deletions
This file was deleted.

src/main/resources/templates/themes/Halo/links.ftl

Lines changed: 0 additions & 58 deletions
This file was deleted.

src/main/resources/templates/themes/Halo/module/comment.ftl

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/main/resources/templates/themes/Halo/module/header.ftl

Lines changed: 0 additions & 64 deletions
This file was deleted.

0 commit comments

Comments
 (0)