From 6aec04f7691d686cc5894ab63b5f53d29eb80942 Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Tue, 12 Nov 2024 11:12:06 +0800 Subject: [PATCH] =?UTF-8?q?Docs:=20=E6=9B=B4=E6=96=B0=E9=83=A8=E7=BD=B2?= =?UTF-8?q?=E6=96=87=E6=A1=A3=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.en.md | 10 +++++++++- README.md | 10 +++++++++- assets/jsconfig.json | 2 +- config/_default/params.toml | 4 ++-- content/posts/hello-world.md | 10 +++++++++- 5 files changed, 30 insertions(+), 6 deletions(-) diff --git a/README.en.md b/README.en.md index c7f7894..ac8705b 100644 --- a/README.en.md +++ b/README.en.md @@ -29,7 +29,7 @@ For a complete quick start, see this [page](https://fixit.lruihao.cn/documentati ### Prerequisites - [Go](https://go.dev/dl/) -- [Hugo](https://gohugo.io/installation/): >= 0.132.0 (extended version) +- [Hugo](https://gohugo.io/installation/) (extended version) ### Use Template @@ -61,6 +61,14 @@ When your site is ready to deploy, run the following command: hugo ``` +### Deploy to GitHub Pages + +1. Head to Setting => Actions => General => Workflow permissions => Check "Read and write permissions". +2. Manually run Workflow: Actions => Hugo build and deploy => Click Run workflow button. +3. GitHub Pages settings: Setting => Pages => Source: Deploy from a branch => Branch: `gh-pages` => Save. + +> Only need to manually run the Workflow the first time you deploy, and it will be automatically deployed every time you push to the `main` branch. + ### Update Theme Afterwards you can upgrade the theme with the following command: diff --git a/README.md b/README.md index c022b7a..a099107 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ ### 准备 - [Go](https://go.dev/dl/) -- [Hugo](https://gohugo.io/installation/): >= 0.132.0 (extended version) +- [Hugo](https://gohugo.io/installation/) (extended version) ### 使用模板 @@ -61,6 +61,14 @@ hugo server -e production hugo ``` +### 部署到 GitHub Pages + +1. 转到 Setting => Actions => General => Workflow permissions => 选中 "Read and write permissions"。 +2. 手动运行 Workflow: Actions => Hugo build and deploy => 点击 Run workflow 按钮。 +3. GitHub Pages 设置:Setting => Pages => Source: Deploy from a branch => Branch: `gh-pages` => Save。 + +> 只有第一次部署时需要手动运行 Workflow,之后每次推送到 `main` 分支都会自动部署。 + ### 更新主题 之后,你可以使用以下命令升级主题: diff --git a/assets/jsconfig.json b/assets/jsconfig.json index 7bb2195..e4751ff 100644 --- a/assets/jsconfig.json +++ b/assets/jsconfig.json @@ -3,7 +3,7 @@ "baseUrl": ".", "paths": { "*": [ - "../../../../Library/Caches/hugo_cache/modules/filecache/modules/pkg/mod/github.com/hugo-fixit/!fix!it@v0.3.11/assets/*" + "../../../../Library/Caches/hugo_cache/modules/filecache/modules/pkg/mod/github.com/hugo-fixit/!fix!it@v0.3.14/assets/*" ] } } diff --git a/config/_default/params.toml b/config/_default/params.toml index 309bd50..88200cd 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -616,9 +616,9 @@ disableThemeInject = false # FixIt 0.2.18 | NEW whether to enable instant.page instantPage = false # FixIt 0.3.0 | NEW whether to enable collection list at the sidebar - collectionList = false + collectionList = true # FixIt 0.3.0 | NEW whether to enable collection navigation at the end of the post - collectionNavigation = false + collectionNavigation = true # FixIt 0.2.15 | NEW Repost config [page.repost] diff --git a/content/posts/hello-world.md b/content/posts/hello-world.md index ddf87ca..bf62595 100644 --- a/content/posts/hello-world.md +++ b/content/posts/hello-world.md @@ -24,7 +24,7 @@ For a complete quick start, see this [page](https://fixit.lruihao.cn/documentati ### Prerequisites - [Go](https://go.dev/dl/) -- [Hugo](https://gohugo.io/installation/): >= 0.132.0 (extended version) +- [Hugo](https://gohugo.io/installation/) (extended version) ### Use this Template @@ -56,6 +56,14 @@ When your site is ready to deploy, run the following command: hugo ``` +### Deploy to GitHub Pages + +1. Head to Setting => Actions => General => Workflow permissions => Check "Read and write permissions". +2. Manually run Workflow: Actions => Hugo build and deploy => Click Run workflow button. +3. GitHub Pages settings: Setting => Pages => Source: Deploy from a branch => Branch: `gh-pages` => Save. + +> Only need to manually run the Workflow the first time you deploy, and it will be automatically deployed every time you push to the `main` branch. + ### Update Theme Afterwards you can upgrade the theme with the following command: