diff --git a/README.md b/README.md index 419f716..99ae903 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ git clone https://github.com/olOwOlo/hugo-theme-even.git themes/even ``` -- 本地编译,生成页面 +- 本地编译,生成页面,仅用于本地调试,不会提交 ```bash hugo --baseURL="https://www.colben.cn/" ``` @@ -28,12 +28,6 @@ ``` ## 发布 -- 进入 gitea 容器,安装 hugo - ```bash - apk update - apk add --no-cache hugo - ``` - - 配置本仓库的 post-receive 钩子,内容如下 ```bash set -euo pipefail @@ -48,6 +42,8 @@ - 克隆本仓库的前端目录 ```bash docker exec -ti gitea /bin/bash # 进入 gitea 容器 + apk update + apk add --no-cache hugo # 安装 hugo chown gitea.www-data /html su - gitea cd /html