halo-theme-hao/HELP.md

28 lines
880 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## 本地环境搭建
### 部署 Halo2.0
[使用 Docker 部署](https://docs.halo.run/2.0.0-SNAPSHOT/getting-started/install/docker)
参考相关文档,在本地部署 Halo2.0,主题目录在 `~/halo-next` 下。
本地启动需要添加配置 `-e SPRING_THYMELEAF_CACHE=FALSE` 这样可以关闭缓存,就可以实时刷新主题了。
`-e SPRING_PROFILES_ACTIVE=dev` 则可以打开 swagger-ui。
### 下载主题
下载[halo-theme-hao](https://github.com/liuzhihang/halo-theme-hao)主题,并压缩为 zip 包,然后在 halo console 控制台上传主题,此时可以在
halo 的主题路径下看到刚才上传的主题。
> 路径为
> ~/halo-next/theme
### 参考主题
> 可以参考相关主题的用法
Halo 官方默认主题https://github.com/halo-sigs/theme-default
Hexo-Butterfly 主题https://github.com/jerryc127/hexo-theme-butterfly