Skip to content

Commit

Permalink
updating site on Thu Apr 18 19:08:43 CDT 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
hongtaoh committed Apr 19, 2024
1 parent fa7d0e4 commit 42c2e46
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions content/cn/blog/2024-03-22-personal-website-tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ git submodule add https://github.com/hongtaoh/hugo-ht themes/hugo-ht
cp -r themes/hugo-ht/exampleSite/* .
cp -r themes/hugo-ht/archetypes .
rm hugo.toml
rm themes/hugo-ht/.git
```

回到 quickstart 文件夹,你会看到一个文件为 `vercel.json` (受 [Rick Cogley 帖子](https://discourse.gohugo.io/t/vercel-tips/34766) 启发)。打开它,并把 `HUGO_VERSION` 改成你的 hugo version。
Expand Down Expand Up @@ -142,6 +143,24 @@ git push
bash deploy.sh
```

### 修改博客语言

你首先需要把 `themes/hugo-ht` 这个文件夹改名,比如,`themes/hugo-ht-theme`,然后 `config.toml` 中改成

```toml
theme = "hugo-ht-theme"
```

这是为了防止 Vercel 不更接下来我们要改的部分。

#### 只用一种语言

[这里](/cn/2021/03/02/personal-website-tutorial/#只用一种语言)

#### 中文为主,英文为辅

[这里](/cn/2021/03/02/personal-website-tutorial/#中文为主英文为辅)

### 添加评论

推荐使用 [giscus](https://giscus.app/zh-CN)。首先[把它安装到你的 github 账户](https://github.com/apps/giscus)。然后我们要确保目前的仓库(也就是 mywebsite)开启了 Discussion 功能。如果开启,请看[这里](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/enabling-or-disabling-github-discussions-for-a-repository#enabling-or-disabling-github-discussions-for-your-repository)
Expand Down

0 comments on commit 42c2e46

Please sign in to comment.