${post.postSummary?if_exists}...
--
-
-
- <#list archive.posts as post>
-
-
+ <#list archive.posts as post>
+
评论者 | +评论内容 | +评论页面 | +日期 | +操作 | +
---|---|---|---|---|
${comment.commentAuthor} | +${comment.commentContent} | ++ ${comment.post.postTitle} + | +${comment.commentDate} | ++ <#switch comment.commentStatus> + <#case 0> + + + <#break > + <#case 1> + 通过 + + <#break > + <#case 2> + 还原 + + <#break > + #switch> + | +
+ 非常感谢你使用Halo进行创作。 +
+标题 | +状态 | +日期 | +|||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
${post.postTitle} | +${post.postTitle} |
<#if post.postStatus==0>
已发布
@@ -223,9 +230,46 @@
-
-
-
+
${tag.tagUrl} |
2 |
- 修改
-
+ 修改
+
|
#list>
@@ -95,8 +95,8 @@
@@ -138,7 +138,6 @@
<#include "module/_footer.ftl">
-
<@footer>@footer>
#compress>
\ No newline at end of file
diff --git a/src/main/resources/templates/admin/theme.ftl b/src/main/resources/templates/admin/theme.ftl
index f911ab474..495871a4f 100755
--- a/src/main/resources/templates/admin/theme.ftl
+++ b/src/main/resources/templates/admin/theme.ftl
@@ -80,48 +80,35 @@
-
<@footer>@footer>
\ No newline at end of file
diff --git a/src/main/resources/templates/admin/widget/_attachment-select.ftl b/src/main/resources/templates/admin/widget/_attachment-select.ftl
index 4e2b6af73..f4606dad8 100644
--- a/src/main/resources/templates/admin/widget/_attachment-select.ftl
+++ b/src/main/resources/templates/admin/widget/_attachment-select.ftl
@@ -64,6 +64,7 @@
+
+
\ No newline at end of file
diff --git a/src/main/resources/templates/common/mail.ftl b/src/main/resources/templates/common/mail.ftl
new file mode 100644
index 000000000..a52dccfaf
--- /dev/null
+++ b/src/main/resources/templates/common/mail.ftl
@@ -0,0 +1,14 @@
+
+
+
-
<#include "module/_footer.ftl">
-
-
-
@@ -133,11 +120,32 @@
$('#uploadTheme').fileinput({
language: 'zh',
uploadUrl: '/admin/themes/upload',
- allowedFileExtensions: ['zip'],
+ allowedFileExtensions: ['zip','jpg'],
maxFileCount: 1,
enctype: 'multipart/form-data',
dropZoneTitle: '拖拽文件到这里 …
-
-
-
-
-
-
-
-
+ #if>
-
-
-
- 此模式不支持多文件同时上传', showClose: false + }).on("fileuploaded",function (event,data,previewId,index) { + var data = data.jqXHR.responseJSON; + if(data==true){ + $("#uploadForm").hide(400); + $.toast({ + text: "上传成功!", + heading: '提示', + icon: 'success', + showHideTransition: 'fade', + allowToastClose: true, + hideAfter: 1000, + stack: 1, + position: 'top-center', + textAlign: 'left', + loader: true, + loaderBg: '#ffffff', + afterHidden: function () { + window.location.reload(); + } + }); + } }); }); }); @@ -197,6 +205,5 @@
-
-
-
-
-
-
-
-
-
\ No newline at end of file
+<@footer>@footer>
\ No newline at end of file
diff --git a/src/main/resources/templates/themes/Anatole/screenshot.png b/src/main/resources/templates/themes/Anatole/screenshot.png
new file mode 100644
index 000000000..5f74efc22
Binary files /dev/null and b/src/main/resources/templates/themes/Anatole/screenshot.png differ
diff --git a/src/main/resources/templates/themes/halo/archives.ftl b/src/main/resources/templates/themes/Halo/archives.ftl
similarity index 100%
rename from src/main/resources/templates/themes/halo/archives.ftl
rename to src/main/resources/templates/themes/Halo/archives.ftl
diff --git a/src/main/resources/templates/themes/halo/index.ftl b/src/main/resources/templates/themes/Halo/index.ftl
similarity index 100%
rename from src/main/resources/templates/themes/halo/index.ftl
rename to src/main/resources/templates/themes/Halo/index.ftl
diff --git a/src/main/resources/templates/themes/halo/links.ftl b/src/main/resources/templates/themes/Halo/links.ftl
similarity index 100%
rename from src/main/resources/templates/themes/halo/links.ftl
rename to src/main/resources/templates/themes/Halo/links.ftl
diff --git a/src/main/resources/templates/themes/Halo/module/comment.ftl b/src/main/resources/templates/themes/Halo/module/comment.ftl
new file mode 100644
index 000000000..63173322d
--- /dev/null
+++ b/src/main/resources/templates/themes/Halo/module/comment.ftl
@@ -0,0 +1,11 @@
+<#if (options.comment_system!)=='valine'>
+ <#include "../../../common/comment/_valine_comment.ftl">
+<#elseif (options.comment_system!)=='disqus'>
+ <#include "../../../common/comment/_disqus_comment.ftl">
+<#elseif (options.comment_system!)=='livere'>
+ <#include "../../../common/comment/_livere_comment.ftl">
+<#elseif (options.comment_system!)=='changyan'>
+ <#include "../../../common/comment/_changyan_comment.ftl">
+<#elseif (options.comment_system!)=='native'>
+ <#include "../../../common/comment/_native_comment.ftl">
+#if>
\ No newline at end of file
diff --git a/src/main/resources/templates/themes/halo/module/header.ftl b/src/main/resources/templates/themes/Halo/module/header.ftl
similarity index 100%
rename from src/main/resources/templates/themes/halo/module/header.ftl
rename to src/main/resources/templates/themes/Halo/module/header.ftl
diff --git a/src/main/resources/templates/themes/halo/module/macro.ftl b/src/main/resources/templates/themes/Halo/module/macro.ftl
similarity index 96%
rename from src/main/resources/templates/themes/halo/module/macro.ftl
rename to src/main/resources/templates/themes/Halo/module/macro.ftl
index b4930aef1..99c0162fc 100644
--- a/src/main/resources/templates/themes/halo/module/macro.ftl
+++ b/src/main/resources/templates/themes/Halo/module/macro.ftl
@@ -62,7 +62,7 @@
${options.statistics_code?if_exists}
-
+ <#include "module/page-top.ftl">
-
-
-
-
-
-
-
-
- <#list archives as archive>
-
${archive.year}.${archive.month}
-
-
- ${post.postTitle}
-
+ <#list archives as archive>
+
- ${post.postDate?string("MM-dd")}
-
- ${archive.year}.${archive.month}
+
+
+
+ #list>
+
-
-
-
-
-
-
-
-
-
\ No newline at end of file
+<@footer>@footer>
\ No newline at end of file
diff --git a/src/main/resources/templates/themes/Anatole/links.ftl b/src/main/resources/templates/themes/Anatole/links.ftl
index 71e4831eb..3205f06b5 100644
--- a/src/main/resources/templates/themes/Anatole/links.ftl
+++ b/src/main/resources/templates/themes/Anatole/links.ftl
@@ -1,294 +1,23 @@
-
-
-
-
-
-
-
-
-
-
+ <#include "module/page-top.ftl">
-
-
-
-
-
-
-
-
- <#list posts.content as post>
-
-
- #list>
+ <#include "module/post_entry.ftl">
+ <#if posts.totalPages gt 1>
-
- - ${post.postTitle} --
-
-
- ${post.postSummary?if_exists}... -
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
+<@footer>@footer>
\ No newline at end of file
diff --git a/src/main/resources/templates/themes/halo/module/comment.ftl b/src/main/resources/templates/themes/Anatole/module/comment.ftl
similarity index 79%
rename from src/main/resources/templates/themes/halo/module/comment.ftl
rename to src/main/resources/templates/themes/Anatole/module/comment.ftl
index cf004c2cb..63173322d 100644
--- a/src/main/resources/templates/themes/halo/module/comment.ftl
+++ b/src/main/resources/templates/themes/Anatole/module/comment.ftl
@@ -6,4 +6,6 @@
<#include "../../../common/comment/_livere_comment.ftl">
<#elseif (options.comment_system!)=='changyan'>
<#include "../../../common/comment/_changyan_comment.ftl">
+<#elseif (options.comment_system!)=='native'>
+ <#include "../../../common/comment/_native_comment.ftl">
#if>
\ No newline at end of file
diff --git a/src/main/resources/templates/themes/Anatole/module/marco.ftl b/src/main/resources/templates/themes/Anatole/module/marco.ftl
new file mode 100644
index 000000000..2eccce2af
--- /dev/null
+++ b/src/main/resources/templates/themes/Anatole/module/marco.ftl
@@ -0,0 +1,29 @@
+<#macro head title="" keywords="" description="">
+
+
+
+
+
+
-
+ <#include "module/page-top.ftl">
-
-
-
-
-
-
-
-
-
-
- FOCKSHOP – 独立原创品牌视觉工作室 -- 创造狮 – 为创意工作者而设计 -- 爱追梦 – 一条挣扎在咸鱼标签上的咸鱼 -- Zohar’s Blog – 一个关注IT、分享技术的个人博客 -- xcatliu – A cat who writes code -- BEET’S BLOG – just talk something! -- 梦魇小栈 – 心,若没有栖息的地方,到哪里都是流浪…… -- neoFelhz’s Blog – 孤独之人 不应执着 为何仍追逐幻梦 -- Sibyl的博客 – 没有白吃的午餐,只有白痴的无惨 -
-
-
-
-
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/templates/themes/Anatole/module/page-top.ftl b/src/main/resources/templates/themes/Anatole/module/page-top.ftl
new file mode 100644
index 000000000..5414b5d75
--- /dev/null
+++ b/src/main/resources/templates/themes/Anatole/module/page-top.ftl
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/templates/themes/Anatole/module/post_entry.ftl b/src/main/resources/templates/themes/Anatole/module/post_entry.ftl
new file mode 100644
index 000000000..9b3882cc2
--- /dev/null
+++ b/src/main/resources/templates/themes/Anatole/module/post_entry.ftl
@@ -0,0 +1,31 @@
+<#list posts.content as post>
+
+
+
+
+
+
+
+
+
+
+#list>
\ No newline at end of file
diff --git a/src/main/resources/templates/themes/Anatole/module/sidebar.ftl b/src/main/resources/templates/themes/Anatole/module/sidebar.ftl
new file mode 100644
index 000000000..94c2f9042
--- /dev/null
+++ b/src/main/resources/templates/themes/Anatole/module/sidebar.ftl
@@ -0,0 +1,23 @@
+
\ No newline at end of file
diff --git a/src/main/resources/templates/themes/Anatole/module/social-list.ftl b/src/main/resources/templates/themes/Anatole/module/social-list.ftl
new file mode 100644
index 000000000..76f333230
--- /dev/null
+++ b/src/main/resources/templates/themes/Anatole/module/social-list.ftl
@@ -0,0 +1,57 @@
+
\ No newline at end of file
diff --git a/src/main/resources/templates/themes/Anatole/post.ftl b/src/main/resources/templates/themes/Anatole/post.ftl
index 8bdbebaad..14db3e2b8 100644
--- a/src/main/resources/templates/themes/Anatole/post.ftl
+++ b/src/main/resources/templates/themes/Anatole/post.ftl
@@ -1,103 +1,8 @@
-
-
-
-
-
-
-
-
+
+ + ${post.postTitle} ++
+
+
+
+
+ ${post.postSummary?if_exists}... +
+
+
+ |
-
- 加载更多 -