diff --git a/src/main/java/run/halo/app/web/controller/content/ContentPageController.java b/src/main/java/run/halo/app/web/controller/content/ContentPageController.java index 3794755fe..021b76be0 100644 --- a/src/main/java/run/halo/app/web/controller/content/ContentPageController.java +++ b/src/main/java/run/halo/app/web/controller/content/ContentPageController.java @@ -10,7 +10,6 @@ import run.halo.app.model.entity.Comment; import run.halo.app.model.entity.Post; import run.halo.app.model.enums.PostStatus; import run.halo.app.service.CommentService; -import run.halo.app.service.GalleryService; import run.halo.app.service.PostService; import run.halo.app.service.ThemeService; @@ -23,7 +22,6 @@ import java.util.List; @Controller public class ContentPageController { - private final GalleryService galleryService; private final PostService postService; @@ -31,11 +29,9 @@ public class ContentPageController { private final ThemeService themeService; - public ContentPageController(GalleryService galleryService, - PostService postService, + public ContentPageController(PostService postService, CommentService commentService, ThemeService themeService) { - this.galleryService = galleryService; this.postService = postService; this.commentService = commentService; this.themeService = themeService; diff --git a/src/main/resources/templates/common/macro/common_macro.ftl b/src/main/resources/templates/common/macro/common_macro.ftl index ceb4b6b7a..6ae6575d8 100644 --- a/src/main/resources/templates/common/macro/common_macro.ftl +++ b/src/main/resources/templates/common/macro/common_macro.ftl @@ -2,7 +2,7 @@ <#-- 统计代码 --> <#macro statistics> - ${options.statistics_code!} + ${options.blog_statistics_code!} #macro> <#-- 页脚信息 --> @@ -20,16 +20,16 @@ <#-- 站点验证代码 --> <#macro verification> <#if options.blog_verification_google??> - + #if> <#if options.blog_verification_bing??> - + #if> <#if options.blog_verification_baidu??> - + #if> <#if options.blog_verification_qihu??> - + #if> #macro> diff --git a/src/main/resources/templates/common/macro/theme_option_marco.ftl b/src/main/resources/templates/common/macro/theme_option_marco.ftl deleted file mode 100644 index 99cc0eb45..000000000 --- a/src/main/resources/templates/common/macro/theme_option_marco.ftl +++ /dev/null @@ -1,83 +0,0 @@ -<#macro head> - - -
- - - - - - - - - -#macro> - -<#macro import_js> - - - - - - -<#nested /> - - -#macro>