halo博客模板dream
Go to file
2023-07-30 14:20:05 +08:00
mail_template chore(init): init 2023-03-21 10:49:35 +08:00
src fix(comment): 修复评论区无法打开问题 2023-07-15 17:50:40 +08:00
templates 增加快捷链接模板 2023-07-30 14:20:05 +08:00
.eslintignore chore: 目录结构调整 2023-03-21 13:54:36 +08:00
.eslintrc.js chore(init): init 2023-03-21 10:49:35 +08:00
.gitignore chore(init): init 2023-03-21 10:49:35 +08:00
.npmignore chore(init): init 2023-03-21 10:49:35 +08:00
.npmrc chore(init): init 2023-03-21 10:49:35 +08:00
annotation-setting.yaml 增加快捷链接模板 2023-07-30 14:20:05 +08:00
gulpfile.js chore(logo): 修改主题logo 2023-03-28 22:43:03 +08:00
LICENSE chore(init): init 2023-03-21 10:49:35 +08:00
package.json build(version): 发布1.0.4版本 2023-07-16 20:48:54 +08:00
preview.png chore(init): init 2023-03-21 10:49:35 +08:00
README.md 增加快捷链接模板 2023-07-30 14:20:05 +08:00
screenshot.png chore(init): init 2023-03-21 10:49:35 +08:00
settings.yaml 增加快捷链接模板 2023-07-30 14:20:05 +08:00
theme.yaml 增加快捷链接模板 2023-07-30 14:20:05 +08:00

halo-theme-dream2.0

halo-theme-dream2.0

releases license downloads size commits donate

本仓库为 Halo 2.x 主题仓库,如果你使用的是 Halo 1.x ,请前往:https://github.com/nineya/halo-theme-dream

一、预览

本人为原作者主题进行二次开发 预览:主题预览

二、版本适配关系

主题版本 适配Halo版本 测试用Halo版本
1.x 2.0.0+ 2.3.0

三、安装 & 更新

  1. 进入主题 Release 界面:https://github.com/nineya/halo-theme-dream2.0/releases 下载主题压缩包 halo-theme-dream.zip 压缩包文件;
  2. 进入博客后台管理 主题->主题管理->安装主题,选择下载的 halo-theme-dream.zip 安装包进行上传;
  3. 等待安装完成;
  4. 更新主题时同样前往主题 Release 界面下载主题安装包,然后通过 主题->主题管理->Dream->升级 方法上传安装包进行更新。

四、主题开发

推荐使用 IDEA 进行主题开发,能够比较好的支持 FreeMarker。

  1. 开发环境准备

    • 安装 nodejs 版本需要在 15+
    • 主题目录下执行 npm i 安装依赖;
  2. npm 命令

    • npm run lint 执行代码风格校验。

    • npm run zip 执行安装包打包,在无须重新编译 js/css 时使用。

    • npm run build 执行主题打包操作,主题将被打包为压缩包文件存放在 dist/ 目录下,同时 source 目录下的文件也将被更新。

    • npm run build --devel 开发模式进行主题打包,jscss 不会被做压缩和混淆处理,方便排查问题。

    • npm run release --tag=$version 发布模式执行主题打包操作,将自动更新主题中的版本号,并使用这个版本标签重新创建 FreeCDN 清单文件。