85 lines
4.2 KiB
Markdown
Raw Normal View History

2023-03-21 10:49:35 +08:00
<p align="center">
2023-03-25 12:46:08 +08:00
<img src="https://cdn.jsdelivr.net/gh/nineya/halo-theme-dream2.0/screenshot.png" alt="halo-theme-dream2.0" width="180">
2023-03-21 10:49:35 +08:00
</p>
2023-03-25 12:46:08 +08:00
<h1 align="center">halo-theme-dream2.0</h1>
2023-03-21 10:49:35 +08:00
<p align="center">
2023-03-25 12:46:08 +08:00
<a href="https://github.com/nineya/halo-theme-dream2.0/releases"><img alt="releases" src="https://img.shields.io/github/release/nineya/halo-theme-dream2.0.svg?style=flat-square"/></a>
<a href="https://github.com/nineya/halo-theme-dream2.0/blob/master/LICENSE"><img alt="license" src="https://img.shields.io/github/license/nineya/halo-theme-dream2.0?style=flat-square"/></a>
<a href="https://github.com/nineya/halo-theme-dream2.0/releases"><img alt="downloads" src="https://img.shields.io/github/downloads/nineya/halo-theme-dream2.0/total.svg?style=flat-square"/></a>
<a href="https://github.com/nineya/halo-theme-dream2.0/releases"><img alt="size" src="https://img.shields.io/github/languages/code-size/nineya/halo-theme-dream2.0?style=flat-square"/></a>
<a href="https://github.com/nineya/halo-theme-dream2.0/commits"><img alt="commits" src="https://img.shields.io/github/last-commit/nineya/halo-theme-dream2.0.svg?style=flat-square"/></a>
<a href="https://github.com/nineya/halo-theme-dream2.0#donate"><img alt="donate" src="https://img.shields.io/badge/$-donate-ff69b4.svg?style=flat-square"/></a>
2023-03-21 10:49:35 +08:00
</p>
2023-03-27 21:29:51 +08:00
2023-03-25 12:46:08 +08:00
本仓库为 `Halo 2.x` 主题仓库,如果你使用的是 `Halo 1.x` 请前往https://github.com/nineya/halo-theme-dream
2023-03-21 10:49:35 +08:00
## 一、预览
2023-03-25 12:46:08 +08:00
![玖涯博客](https://cdn.jsdelivr.net/gh/nineya/halo-theme-dream2.0@master/preview.png)
2023-03-21 10:49:35 +08:00
预览:[主题预览](https://github.com/nineya/halo-theme-dream/discussions/72)
> 如果你有计划长期使用 `Dream` 主题,也来[这里](https://github.com/nineya/halo-theme-dream/discussions/72)留下你的博客链接吧。
## 二、说明
梦之城,童话梦境,动漫类型博客主题。
关于主题使用上的一些问题可以参见 [主题使用手册-基础篇](https://blog.nineya.com/archives/94.html)
2023-05-29 10:10:27 +08:00
如有疑问,欢迎加入 <a target="_blank" href="https://qm.qq.com/cgi-bin/qm/qr?k=X7p7Bs21cgtkQ0dRfzmBsuWqNNQc10hn&jump_from=webapi">Dream 主题交流群638168592</a>
2023-03-21 10:49:35 +08:00
欢迎参与主题开发的一些<a href="https://github.com/nineya/halo-theme-dream/discussions">问题探讨</a>
2023-05-29 10:10:27 +08:00
欢迎关注微信公众号《玖涯菜菜子》,主题版本更新消息与要点说明将在公众号发布。
![微信公众号](https://blog.nineya.com/upload/2023/05/未标题-2.png)
2023-03-25 12:46:08 +08:00
2023-03-21 10:49:35 +08:00
## 三、版本适配关系
| 主题版本 | 适配Halo版本 | 测试用Halo版本 |
| ----------- | --------------------------- | -------------- |
2023-03-25 12:46:08 +08:00
| 1.x | 2.0.0+ | 2.3.0 |
2023-03-21 10:49:35 +08:00
## 四、安装 & 更新
2023-03-25 12:46:08 +08:00
1. 进入主题 `Release` 界面https://github.com/nineya/halo-theme-dream2.0/releases 下载主题压缩包 `halo-theme-dream.zip` 压缩包文件;
2. 进入博客后台管理 `主题->主题管理->安装主题`,选择下载的 `halo-theme-dream.zip` 安装包进行上传;
2023-03-21 10:49:35 +08:00
3. 等待安装完成;
2023-03-25 12:46:08 +08:00
4. 更新主题时同样前往主题 `Release` 界面下载主题安装包,然后通过 `主题->主题管理->Dream->升级` 方法上传安装包进行更新。
2023-03-21 10:49:35 +08:00
## 五、参与主题开发
> 推荐使用 IDEA 进行主题开发,能够比较好的支持 FreeMarker。
1. 开发环境准备
- 安装 `nodejs` 版本需要在 `15+`
- 主题目录下执行 `npm i` 安装依赖;
2. npm 命令
2023-03-25 12:46:08 +08:00
- `npm run lint` 执行代码风格校验。
- `npm run zip` 执行安装包打包,在无须重新编译 `js/css` 时使用。
2023-03-21 10:49:35 +08:00
- `npm run build` 执行主题打包操作,主题将被打包为压缩包文件存放在 `dist/` 目录下,同时 `source` 目录下的文件也将被更新。
- `npm run build --devel` 开发模式进行主题打包,`js``css` 不会被做压缩和混淆处理,方便排查问题。
- `npm run release --tag=$version` 发布模式执行主题打包操作,将自动更新主题中的版本号,并使用这个版本标签重新创建 `FreeCDN` 清单文件。
2023-03-25 12:46:08 +08:00
2023-03-21 10:49:35 +08:00
## 六、打赏项目
2023-05-29 10:10:27 +08:00
感谢您对本项目的喜爱,您的打赏是对本项目最好的支持!
2023-03-21 10:49:35 +08:00
![打赏项目](https://blog.nineya.com/upload/2022/08/funding.png)