-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/fomalhaut1998/hexo-theme-Fo…
- Loading branch information
Showing
2 changed files
with
33 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,33 @@ | ||
# hexo-theme-Fomalhaut | ||
🥝的博客源码 | ||
🥝的博客源码,目前已经开源啦!!!暂定名为**hexo-theme-Fomalhaut**,原作者网站:www.fomal.cc | ||
|
||
|
||
![](./cover.jpg) | ||
|
||
本源码是基于Hexo-Butterfly的二次开发,暂时没时间做完全的主题分离,因此安装就是整个博客的安装,当然你也可以不直接搬走,而是借鉴里面的部分代码。 | ||
|
||
**食用方法**🍡🍡🍡: | ||
|
||
1. 安装 NodeJs、Hexo、Git、注册并连接Github,此部分可参考[Hexo博客搭建基础教程(一)](https://www.fomal.cc/posts/e593433d.html)。 | ||
PS:相当于链接教程的第1-7步,第8步就不要做了,不然会清空源码的!!!(不是新手请跳过这条) | ||
|
||
2. 把源码打包下载到自己的电脑,然后解压缩到一个你喜欢的文件夹中 | ||
|
||
3. 在git bash命令中切换到下载的博客根目录,使用以下命令进行模块安装。这里绝不能使用`hexo init`初始化,若不慎用了,则站点的配置文件`_config.yml`内容会被重置 | ||
|
||
```bash | ||
npm i | ||
``` | ||
|
||
4. 执行以下命令清空并启动项目,启动成功后再浏览器地址栏输入`localhost:4000`进行验证 | ||
|
||
```bash | ||
hexo cl; hexo g; hexo s | ||
``` | ||
|
||
5. 到这里一般是没啥问题的了,当本地能成功启动后,改一下站点配置文件的`_config.yml`的`deploy`配置项,然后用以下命令部署到Github | ||
|
||
```bash | ||
hexo d | ||
``` | ||
|
||
注意:本项目开源了小站的绝大部分样式,但部分模块需自行更改为自己的密钥或信息,不会的请多看相关文档(Hexo主题文档、Butterfly主题文档、店长)和本站教程,若有问题请加Q群:691942826 验证:Github开源项目 |