commit 3f09561d7c86e19d271e97cb3754aae55c961927 Author: 7Wate 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!}"> +

归档

+ + +

分页

+ + <#if posts.totalPages gt 1> + + <#else> + 当前只有一页 + + 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!}"> +

分类列表

+ + 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> + + <#else> + 当前只有一页 + + 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> + + <#else> + 当前只有一页 + + 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!}"> +

友情链接

+ + 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> + + + + + \ 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 /> + + + + 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} +
  • + + \ 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" /> + 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" /> + 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> + + <#else> + 当前只有一页 + + 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!}"> +

    标签列表

    + + 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