commit c7703a1cbaf2898fba1ee7e7279545f98438a038
Author: zopiya
Date: Tue Dec 28 08:36:20 2021 +0800
Initial commit
diff --git a/archives.ftl b/archives.ftl
new file mode 100644
index 0000000..281552d
--- /dev/null
+++ b/archives.ftl
@@ -0,0 +1,48 @@
+<#include "module/macro.ftl">
+<@layout title="归档 - ${blog_title!}">
+ 归档
+
+ <#list archives as archive>
+ ${archive.year?c}
+ <#list archive.posts as post>
+ -
+ ${post.title!}
+
+ #list>
+ #list>
+
+
+ 分页
+
+ <#if posts.totalPages gt 1>
+
+ <@paginationTag method="archives" page="${posts.number}" total="${posts.totalPages}" display="3">
+ <#if pagination.hasPrev>
+ -
+
+ 上一页
+
+
+ #if>
+ <#list pagination.rainbowPages as number>
+ -
+ <#if number.isCurrent>
+ 第 ${number.page!} 页
+ <#else>
+ 第 ${number.page!} 页
+ #if>
+
+ #list>
+ <#if pagination.hasNext>
+ -
+
+ 下一页
+
+
+ #if>
+ @paginationTag>
+
+ <#else>
+ 当前只有一页
+ #if>
+@layout>
diff --git a/categories.ftl b/categories.ftl
new file mode 100644
index 0000000..8c78219
--- /dev/null
+++ b/categories.ftl
@@ -0,0 +1,13 @@
+<#include "module/macro.ftl">
+<@layout title="分类列表 - ${blog_title!}">
+ 分类列表
+
+ <@categoryTag method="list">
+ <#if categories?? && categories?size gt 0>
+ <#list categories as category>
+ - ${category.name}
+ #list>
+ #if>
+ @categoryTag>
+
+@layout>
diff --git a/category.ftl b/category.ftl
new file mode 100644
index 0000000..49358ca
--- /dev/null
+++ b/category.ftl
@@ -0,0 +1,45 @@
+<#include "module/macro.ftl">
+<@layout title="分类:${category.name} - ${blog_title!}">
+ 分类:${category.name}
+
+
+ 分页
+
+ <#if posts.totalPages gt 1>
+
+ <@paginationTag method="categoryPosts" page="${posts.number}" total="${posts.totalPages}" display="3" slug="${category.slug!}">
+ <#if pagination.hasPrev>
+ -
+
+ 上一页
+
+
+ #if>
+ <#list pagination.rainbowPages as number>
+ -
+ <#if number.isCurrent>
+ 第 ${number.page!} 页
+ <#else>
+ 第 ${number.page!} 页
+ #if>
+
+ #list>
+ <#if pagination.hasNext>
+ -
+
+ 下一页
+
+
+ #if>
+ @paginationTag>
+
+ <#else>
+ 当前只有一页
+ #if>
+@layout>
diff --git a/index.ftl b/index.ftl
new file mode 100644
index 0000000..fa0ceb5
--- /dev/null
+++ b/index.ftl
@@ -0,0 +1,50 @@
+<#include "module/macro.ftl">
+<@layout title="${blog_title!}">
+ 公告
+
+ ${settings.index_notice!}
+
+
+ 文章列表
+
+
+ 分页
+
+ <#if posts.totalPages gt 1>
+
+ <@paginationTag method="index" page="${posts.number}" total="${posts.totalPages}" display="3">
+ <#if pagination.hasPrev>
+ -
+
+ 上一页
+
+
+ #if>
+ <#list pagination.rainbowPages as number>
+ -
+ <#if number.isCurrent>
+ 第 ${number.page!} 页
+ <#else>
+ 第 ${number.page!} 页
+ #if>
+
+ #list>
+ <#if pagination.hasNext>
+ -
+
+ 下一页
+
+
+ #if>
+ @paginationTag>
+
+ <#else>
+ 当前只有一页
+ #if>
+@layout>
diff --git a/links.ftl b/links.ftl
new file mode 100644
index 0000000..f32e580
--- /dev/null
+++ b/links.ftl
@@ -0,0 +1,18 @@
+<#include "module/macro.ftl">
+<@layout title="友情链接 - ${blog_title!}">
+ 友情链接
+
+ <@linkTag method="list">
+ <#if links?? && links?size gt 0>
+ <#list links as link>
+ -
+ ${link.name}
+ <#if link.description!=''>
+ – ${link.description}
+ #if>
+
+ #list>
+ #if>
+ @linkTag>
+
+@layout>
diff --git a/module/comment.ftl b/module/comment.ftl
new file mode 100644
index 0000000..c6a6153
--- /dev/null
+++ b/module/comment.ftl
@@ -0,0 +1,7 @@
+<#macro comment post,type>
+ <#if !post.disallowComment!false>
+
+
+
+ #if>
+#macro>
\ No newline at end of file
diff --git a/module/macro.ftl b/module/macro.ftl
new file mode 100644
index 0000000..fde3a71
--- /dev/null
+++ b/module/macro.ftl
@@ -0,0 +1,31 @@
+<#macro layout title>
+
+
+
+
+
+
+
+ <#--
+ 公共 head 代码,详情请参考:https://docs.halo.run/zh/developer-guide/theme/public-template-tag
+ 包含:Favicon,自定义 head 等
+ -->
+
+ <@global.head />
+
+ ${title}
+
+
+<#include "menu.ftl">
+
+<#nested >
+
+<#--
+ 公共底部代码,详情请参考:https://docs.halo.run/zh/developer-guide/theme/public-template-tag
+ 包含:统计代码,底部信息
+-->
+<@global.footer />
+
+
+#macro>
+
diff --git a/module/menu.ftl b/module/menu.ftl
new file mode 100644
index 0000000..b422c6f
--- /dev/null
+++ b/module/menu.ftl
@@ -0,0 +1,10 @@
+<@menuTag method="list">
+ <#--
+ ?sort_by('priority'):根据菜单的排序编号排序
+ -->
+ <#list menus?sort_by('priority') as menu>
+
+ ${menu.name}
+
+ #list>
+@menuTag>
\ No newline at end of file
diff --git a/post.ftl b/post.ftl
new file mode 100644
index 0000000..a75139e
--- /dev/null
+++ b/post.ftl
@@ -0,0 +1,9 @@
+<#include "module/macro.ftl">
+<@layout title="${post.title!} - ${blog_title!}">
+ ${post.title!}
+
+ ${post.formatContent!}
+
+ <#include "module/comment.ftl">
+ <@comment post=post type="post" />
+@layout>
diff --git a/settings.yaml b/settings.yaml
new file mode 100644
index 0000000..ce5f82c
--- /dev/null
+++ b/settings.yaml
@@ -0,0 +1,9 @@
+# 配置详情请参考:https://docs.halo.run/zh/developer-guide/theme/config-files
+genernal:
+ label: 基本设置
+ items:
+ index_notice:
+ name: index_notice
+ label: 首页公告
+ type: textarea
+ default: '欢迎来到我的博客'
\ No newline at end of file
diff --git a/sheet.ftl b/sheet.ftl
new file mode 100644
index 0000000..61878a7
--- /dev/null
+++ b/sheet.ftl
@@ -0,0 +1,9 @@
+<#include "module/macro.ftl">
+<@layout title="${sheet.title!} - ${blog_title!}">
+ ${sheet.title!}
+
+ ${sheet.formatContent!}
+
+ <#include "module/comment.ftl">
+ <@comment post=sheet type="sheet" />
+@layout>
diff --git a/source/css/style.css b/source/css/style.css
new file mode 100644
index 0000000..e8c7365
--- /dev/null
+++ b/source/css/style.css
@@ -0,0 +1 @@
+style.css
diff --git a/source/images/.gitkeep b/source/images/.gitkeep
new file mode 100644
index 0000000..e69de29
diff --git a/source/js/index.js b/source/js/index.js
new file mode 100644
index 0000000..012a3cd
--- /dev/null
+++ b/source/js/index.js
@@ -0,0 +1 @@
+index.js
diff --git a/tag.ftl b/tag.ftl
new file mode 100644
index 0000000..be5920d
--- /dev/null
+++ b/tag.ftl
@@ -0,0 +1,45 @@
+<#include "module/macro.ftl">
+<@layout title="标签:${tag.name} - ${blog_title!}">
+ 标签:${tag.name}
+
+
+ 分页
+
+ <#if posts.totalPages gt 1>
+
+ <@paginationTag method="tagPosts" page="${posts.number}" total="${posts.totalPages}" display="3" slug="${tag.slug!}">
+ <#if pagination.hasPrev>
+ -
+
+ 上一页
+
+
+ #if>
+ <#list pagination.rainbowPages as number>
+ -
+ <#if number.isCurrent>
+ 第 ${number.page!} 页
+ <#else>
+ 第 ${number.page!} 页
+ #if>
+
+ #list>
+ <#if pagination.hasNext>
+ -
+
+ 下一页
+
+
+ #if>
+ @paginationTag>
+
+ <#else>
+ 当前只有一页
+ #if>
+@layout>
diff --git a/tags.ftl b/tags.ftl
new file mode 100644
index 0000000..9013c8a
--- /dev/null
+++ b/tags.ftl
@@ -0,0 +1,13 @@
+<#include "module/macro.ftl">
+<@layout title="标签列表 - ${blog_title!}">
+ 标签列表
+
+ <@tagTag method="list">
+ <#if tags?? && tags?size gt 0>
+ <#list tags as tag>
+ - ${tag.name}
+ #list>
+ #if>
+ @tagTag>
+
+@layout>
diff --git a/theme.yaml b/theme.yaml
new file mode 100644
index 0000000..94d028c
--- /dev/null
+++ b/theme.yaml
@@ -0,0 +1,12 @@
+# 配置详情请参考:https://docs.halo.run/zh/developer-guide/theme/config-files
+id: halo_quickstarter
+name: QuickStarter
+author:
+ name: halo-dev
+ website: https://halo.run
+description: Quick starter theme for halo
+logo: https://avatars.githubusercontent.com/u/48195280?s=200&v=4
+website: https://github.com/halo-dev/halo-theme-quick-starter
+repo: https://github.com/halo-dev/halo-theme-quick-starter
+version: 1.0.0
+require: 1.4.2