-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f983dfc
commit 760ea1f
Showing
1 changed file
with
16 additions
and
1 deletion.
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,5 +1,20 @@ | ||
本项目是基于Hugo搭建的静态博客。 | ||
|
||
### GitHub Action | ||
最近发现GitHub Pages支持直接部署Hugo源文件,GitHub Action会进行编译和发布。这就简单很多。在此之前,我是在本地编译,并且使用了多个分支来存储源码和编译后的静态文件,脚本写得也很复杂。原来这套做法移到[github.io-old](https://github.com/whuwangyong/github.io-old)仓库留个备份。 | ||
|
||
使用的Hugo主题为[FixIt](https://github.com/hugo-fixit/FixIt)。 | ||
### 辅助脚本 | ||
GitHub Action会调用publish.py脚本,该脚本实现了以下功能: | ||
- 提交新增博文的URL到bing,提高博文被bing收录的速度 | ||
- 提交关键字索引文件到algolia,实现站内搜索 | ||
|
||
### 主题 | ||
本博客使用的Hugo主题为[FixIt](https://github.com/hugo-fixit/FixIt),以submodule的形式引入项目。 | ||
|
||
主题更新: | ||
```bash | ||
git submodule update --remote --merge | ||
git add . | ||
git commit -m "upgrade theme" | ||
git push | ||
``` |