Skip to content

Commit

Permalink
fix(demo): fix broken links
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Feb 13, 2023
1 parent b7c9ff0 commit a52881d
Show file tree
Hide file tree
Showing 14 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion exampleSite/config/_default/social.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ twitter = "razonyang"
# dockerhub = "yourdockerhubusername"
# bitbucket = "yourbitbucketworkspaceid"
# kaggle = "yourkaggleusername"
# medium = "yourmediumusername" # Medium username or custom domain(e.g. https://custom.domain.tld).
# medium = "yourmediumusername" # Medium username or custom domain(e.g. https://razonyang.com).
# lastfm = "yourlastfmusername"
# bilibili = "yourbilibiliuserid"
# youtube = "youryoutubechannelid"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ $ npm install

### Preview your site

- Start hugo's built-in webserver to [preview](http://localhost:1313/) your website:
Start hugo's built-in webserver, and then navigate to `http://localhost:1313/`.

```bash
$ hugo server
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ $ npm install

### Preview your site

- Start hugo's built-in webserver to [preview](http://localhost:1313/) your website:
Start hugo's built-in webserver, and then navigate to `http://localhost:1313/`.

```bash
$ hugo server
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ $ npm install

### Preview your site

- Start hugo's built-in webserver to [preview](http://localhost:1313/) your website:
Start hugo's built-in webserver, and then navigate to `http://localhost:1313/`.

```bash
$ hugo server
Expand Down
2 changes: 1 addition & 1 deletion exampleSite/content/docs/widgets/comments/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ I set up a public staticman instance for testing, it should works with GitHub re

> You'll need to install the [GitHub App](https://github.com/apps/hbs-staticman) for your repo, so that the instance has access to write comments files to your repo.
- Endpoint: https://hbs-staticman.herokuapp.com
- Endpoint: `https://hbs-staticman.herokuapp.com`

#### Staticman Configuration

Expand Down
2 changes: 1 addition & 1 deletion exampleSite/content/docs/widgets/comments/index.zh-hans.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ I set up a public staticman instance for testing, it should works with GitHub re

> You'll need to install the [GitHub App](https://github.com/apps/hbs-staticman) for your repo, so that the instance has access to write comments files to your repo.
- Endpoint: https://hbs-staticman.herokuapp.com
- Endpoint: `https://hbs-staticman.herokuapp.com`

#### Staticman Configuration

Expand Down
2 changes: 1 addition & 1 deletion exampleSite/content/docs/widgets/comments/index.zh-hant.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ I set up a public staticman instance for testing, it should works with GitHub re

> You'll need to install the [GitHub App](https://github.com/apps/hbs-staticman) for your repo, so that the instance has access to write comments files to your repo.
- Endpoint: https://hbs-staticman.herokuapp.com
- Endpoint: `https://hbs-staticman.herokuapp.com`

#### Staticman Configuration

Expand Down
2 changes: 1 addition & 1 deletion exampleSite/content/docs/widgets/social-links/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ github = "githubusername"
| `dockerhub` | Docker Hub Username |
| `bitbucket` | Bitbucket Workspace ID |
| `kaggle` | Kaggle Username |
| `medium` | Medium Username or custom domain(e.g. https://custom.domain.tld) |
| `medium` | Medium Username or custom domain(e.g. https://razonyang.com) |
| `lastfm` | Last.fm Username |
| `bibibili` | BiliBili User ID |
| `youtube` | Youtube Channel ID |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ github = "githubusername"
| `dockerhub` | Docker Hub 用户名 |
| `bitbucket` | Bitbucket Workspace ID |
| `kaggle` | Kaggle 用户名 |
| `medium` | Medium 用户名或自定义域名(比如:https://custom.domain.tld |
| `medium` | Medium 用户名或自定义域名(比如:https://razonyang.com |
| `lastfm` | Last.fm 用户名 |
| `bibibili` | BiliBili 用户 ID |
| `youtube` | Youtube 频道 ID |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ github = "githubusername"
| `dockerhub` | Docker Hub 使用者名稱 |
| `bitbucket` | Bitbucket Workspace ID |
| `kaggle` | Kaggle 使用者名稱 |
| `medium` | Medium 使用者名稱或自定義域名(比如:https://custom.domain.tld |
| `medium` | Medium 使用者名稱或自定義域名(比如:https://razonyang.com |
| `lastfm` | Last.fm 使用者名稱 |
| `bibibili` | BiliBili 使用者 ID |
| `youtube` | Youtube 頻道 ID |
Expand Down
6 changes: 3 additions & 3 deletions exampleSite/data/en/faq/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,23 @@
"questions": [
{
"question": "How to set up the FAQ page?",
"answer": "See also [FAQ Page](/v1/en/posts/faq)."
"answer": "See also [FAQ Page]({{< ref `docs/layouts/faq` >}})."
},
{
"question": "Does FAQ page support Markdown syntax?",
"answer": "Sure. You can type any valid Markdown syntax, such as `code`, *italic*, **bold text** etc.\n#### Table\n| Foo |\n|:---|\n| Bar |\n#### List\n- One\n- Two\n"
},
{
"question": "How to add more icons?",
"answer": "See also [Look and Feel](/v1/en/posts/look-and-feel#icons)."
"answer": "See also [Look and Feel]({{< ref `docs/look-and-feel#icons` >}})."
},
{
"question": "How to remove a language?",
"answer": "Let's take `zh-cn` as example.\n- Remove the language from `config/_default/languages.toml`.\n- Remove the content by command `find . -type f -name \"*.zh-cn.*\" -delete`."
},
{
"question": "How to add new language?",
"answer": "- Put your new language into `config/_default/languages.toml`.\n- [Write Articles](/v1/en/docs/content/)."
"answer": "- Put your new language into `config/_default/languages.toml`.\n- [Write Articles]({{< ref `docs/content` >}})."
}
]
}
6 changes: 3 additions & 3 deletions exampleSite/data/ja/faq/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,23 @@
"questions": [
{
"question": "FAQページの設置方法は?",
"answer": "こちらもご覧下さい [FAQ Page](/v1/ja/posts/faq)."
"answer": "こちらもご覧下さい [FAQ Page]({{< ref `docs/layouts/faq` >}})."
},
{
"question": "FAQページはMarkdown構文に対応していますか?",
"answer": "もちろん、次のような有効なMarkdown構文を入力することができます。 `code`, *italic*, **bold text** etc.\n#### Table\n| Foo |\n|:---|\n| Bar |\n#### List\n- One\n- Two\n"
},
{
"question": "アイコンを増やすには?",
"answer": "こちらもご覧下さい [Look and Feel](/v1/ja/posts/look-and-feel#icons)."
"answer": "こちらもご覧下さい [Look and Feel]({{< ref path=`docs/look-and-feel#icons` lang=en >}})."
},
{
"question": "言語を削除するには?",
"answer": "zh-cn`を例にとって考えてみよう。\n- `config/_default/languages.toml`から言語を削除\n- コマンドによるコンテンツの削除 `find . -type f -name \"*.zh-cn.*\" -delete`."
},
{
"question": "新しい言語を追加するには?",
"answer": "- 新しい言語を `config/_default/languages.toml`に追加\n- [Write Articles](/v1/en/docs/content/)."
"answer": "- 新しい言語を `config/_default/languages.toml`に追加\n- [Write Articles]({{< ref path=`docs/content` lang=en >}})."
}
]
}
6 changes: 3 additions & 3 deletions exampleSite/data/zh-hans/faq/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,23 @@
"questions": [
{
"question": "如何设置 FAQ 页面?",
"answer": "请参阅 [FAQ 页面](/zh-cn/posts/faq)。"
"answer": "请参阅 [FAQ 页面]({{< ref `docs/layouts/faq` >}})。"
},
{
"question": "FAQ 页面支持 Markdown 格式吗?",
"answer": "当然,你可以输入任意有效的 Markdown 格式,比如 `代码`, *斜体*, **粗体** 等。\n#### 表格\n| Foo |\n|:---|\n| Bar |\n#### 列表\n- One\n- Two\n"
},
{
"question": "如何添加图标?",
"answer": "请参阅 [图标](/zh-cn/posts/look-and-feel#图标)。"
"answer": "请参阅 [图标]({{< ref `docs/look-and-feel#图标` >}})。"
},
{
"question": "如何删除语言?",
"answer": "我们以 `zh-cn` 为例。\n- 从 `config/_default/languages.toml` 删除语言。\n- 通过 `find . -type f -name \"*.zh-cn.*\" -delete` 删除配置和内容。"
},
{
"question": "如何添加新语言?",
"answer": "- 在 `config/_default/languages.toml` 添加新语言。\n- [书写文章](/zh-cn/docs/content)。"
"answer": "- 在 `config/_default/languages.toml` 添加新语言。\n- [书写文章]({{< ref `docs/content` >}})。"
}
]
}
6 changes: 3 additions & 3 deletions exampleSite/data/zh-hant/faq/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,23 @@
"questions": [
{
"question": "如何設置 FAQ 頁面?",
"answer": "請參閱 [FAQ 頁面](/zh-tw/posts/faq)。"
"answer": "請參閱 [FAQ 頁面]({{< ref `docs/layouts/faq` >}})。"
},
{
"question": "FAQ 頁面支持 Markdown 格式嗎?",
"answer": "當然,你可以輸入任意有效的 Markdown 格式,比如 `代碼`, *斜體*, **粗體** 等。\n#### 表格\n| Foo |\n|:---|\n| Bar |\n#### 列表\n- One\n- Two\n"
},
{
"question": "如何添加圖標?",
"answer": "請參閱 [圖標](/zh-tw/posts/look-and-feel#圖標)。"
"answer": "請參閱 [圖標]({{< ref `docs/look-and-feel#圖標` >}})。"
},
{
"question": "如何刪除語言?",
"answer": "我們以 `zh-cn` 為例。\n- 從 `config/_default/languages.toml` 刪除語言。\n- 通過 `find . -type f -name \"*.zh-cn.*\" -delete` 刪除配置和內容。"
},
{
"question": "如何添加新語言?",
"answer": "- 在 `config/_default/languages.toml` 添加新語言。\n- [書寫文章](/zh-tw/docs/content)。"
"answer": "- 在 `config/_default/languages.toml` 添加新語言。\n- [書寫文章]({{< ref `docs/content` >}})。"
}
]
}

0 comments on commit a52881d

Please sign in to comment.