diff --git a/.gitignore b/.gitignore index aea0ce2d..d49d66cb 100644 --- a/.gitignore +++ b/.gitignore @@ -15,4 +15,3 @@ logs/ # database file # tale.db -/src/main/resources/templates/themes/ diff --git a/src/main/resources/templates/themes/default/archives.html b/src/main/resources/templates/themes/default/archives.html index fe7fd1cf..a7920146 100644 --- a/src/main/resources/templates/themes/default/archives.html +++ b/src/main/resources/templates/themes/default/archives.html @@ -1,4 +1,4 @@ -#include('./header.html', {title: '文章归档'}) +#include('./partial/header.html', {title: '文章归档'})
#for(archive : archives) @@ -24,4 +24,4 @@ #end
-#include('./footer.html') \ No newline at end of file +#include('./partial/footer.html') \ No newline at end of file diff --git a/src/main/resources/templates/themes/default/index.html b/src/main/resources/templates/themes/default/index.html index e682e83d..fb3d28c3 100644 --- a/src/main/resources/templates/themes/default/index.html +++ b/src/main/resources/templates/themes/default/index.html @@ -1,8 +1,8 @@ -#include('./header.html',{home_page:1}) +#include('./partial/header.html',{home_page:1})
- #for(article : articles.rows) + #for(article : articles(12).rows)
@@ -30,7 +30,7 @@
- #call pageNav(articles,'←','→','page') + #call pageNav(articles(12),'←','→','page')
-#include('./footer.html') \ No newline at end of file +#include('./partial/footer.html') \ No newline at end of file diff --git a/src/main/resources/templates/themes/default/links.html b/src/main/resources/templates/themes/default/links.html deleted file mode 100644 index 45260ca0..00000000 --- a/src/main/resources/templates/themes/default/links.html +++ /dev/null @@ -1,29 +0,0 @@ -#include('./header.html', {title: '友情链接'}) -
-
-

友情链接

- -

链接须知

-
-
    -
  • 请确定贵站可以稳定运营

  • -
  • 原创博客优先,技术类博客优先,设计、视觉类博客优先

  • -
  • 经常过来访问和评论,眼熟的

  • -
-
-

备注:默认申请友情链接均为内页(当前页面)

-

基本信息

-

-                网站名称:TaleBlog
-                网站地址:tale.biezhi.me
- -

请在当页通过评论来申请友链,其他地方不予回复

-

暂时先这样,同时欢迎互换友链,这个页面留言即可。 ^_^

-

还有,我会不定时对无法访问的网址进行清理,请保证自己的链接长期有效。

-
-#include('./comments.html') -#include('./footer.html') \ No newline at end of file diff --git a/src/main/resources/templates/themes/default/page-category.html b/src/main/resources/templates/themes/default/page-category.html index 72009a4d..7b4f24a3 100644 --- a/src/main/resources/templates/themes/default/page-category.html +++ b/src/main/resources/templates/themes/default/page-category.html @@ -1,4 +1,4 @@ -#include('./header.html', {title: keyword }) +#include('./partial/header.html', {title: keyword })
@@ -32,4 +32,4 @@ #end
-#include('./footer.html') \ No newline at end of file +#include('./partial/footer.html') \ No newline at end of file diff --git a/src/main/resources/templates/themes/default/page.html b/src/main/resources/templates/themes/default/page.html index 757f890b..90221576 100644 --- a/src/main/resources/templates/themes/default/page.html +++ b/src/main/resources/templates/themes/default/page.html @@ -1,4 +1,4 @@ -#include('./header.html', {title: article.title }) +#include('./partial/header.html', {title: article.title })

${title()}

@@ -8,5 +8,5 @@

${title()}

${show_content()}
-#include('./comments.html') -#include('./footer.html') \ No newline at end of file +#include('./partial/comments.html') +#include('./partial/footer.html') \ No newline at end of file diff --git a/src/main/resources/templates/themes/default/comments.html b/src/main/resources/templates/themes/default/partial/comments.html similarity index 100% rename from src/main/resources/templates/themes/default/comments.html rename to src/main/resources/templates/themes/default/partial/comments.html diff --git a/src/main/resources/templates/themes/default/footer.html b/src/main/resources/templates/themes/default/partial/footer.html similarity index 100% rename from src/main/resources/templates/themes/default/footer.html rename to src/main/resources/templates/themes/default/partial/footer.html diff --git a/src/main/resources/templates/themes/default/header.html b/src/main/resources/templates/themes/default/partial/header.html similarity index 100% rename from src/main/resources/templates/themes/default/header.html rename to src/main/resources/templates/themes/default/partial/header.html diff --git a/src/main/resources/templates/themes/default/post.html b/src/main/resources/templates/themes/default/post.html index 8c0d9715..319b85fb 100644 --- a/src/main/resources/templates/themes/default/post.html +++ b/src/main/resources/templates/themes/default/post.html @@ -1,4 +1,4 @@ -#include('./header.html',{title: article.title, keywords: article.tags}) +#include('./partial/header.html',{title: article.title, keywords: article.tags})

@@ -37,5 +37,5 @@

-#include('./comments.html') -#include('./footer.html') \ No newline at end of file +#include('./partial/comments.html') +#include('./partial/footer.html') \ No newline at end of file