Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: update docs layout #812

Merged
merged 5 commits into from
Nov 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions exampleSite/content/docs/layouts/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ In addition, we provide a parameter called `linkTitleIcon` to set the icon on th
linkTitleIcon = '<i class="fas fa-columns fa-fw"></i>'
{{< /code-toggle >}}

### 权重于排序
### Weight

We sort documents according to the `navweight` parameter, upper weight gets higher precedence. For documents without 'navweight' specified, they are sorted alphabetically by `title`.
We sort documents according to the `navWeight` parameter, upper weight gets higher precedence. For documents without 'navWeight' specified, they are sorted alphabetically by `title`.

{{< code-toggle >}}
navWeight = 1000
Expand All @@ -82,7 +82,7 @@ redirect = "https://github.com/razonyang/hugo-theme-bootstrap-skeleton"

### Widgets

By default, the sidebar only contains the table of content, but you can add widgets via [hook] ({< ref "docs/advanced/hooks" >}}).
By default, the sidebar only contains the table of content, but you can add widgets via [hook]({{< ref "docs/advanced/hooks" >}}).

```html {title="layouts/partials/hooks/docs/sidebar-end.html"}
{{- partial "docs/repo" . }}
Expand Down
2 changes: 1 addition & 1 deletion exampleSite/content/docs/layouts/docs/index.zh-hans.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ linkTitle = "Windows"
linkTitleIcon = '<i class="fas fa-columns fa-fw"></i>'
{{< /code-toggle >}}

### 权重于排序
### 权重与排序

我们根据 `navWeight` 参数对文档进行排序,值越高则优先度越高。而对于没有指定 `navWeight` 的文档,则按照 `title` 进行字母升序排序。

Expand Down
2 changes: 1 addition & 1 deletion exampleSite/content/docs/layouts/docs/index.zh-hant.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ linkTitle = "Windows"
linkTitleIcon = '<i class="fas fa-columns fa-fw"></i>'
{{< /code-toggle >}}

### 權重於排序
### 權重與排序

我們根據 `navWeight` 參數對文檔進行排序,值越高則優先度越高。而對於沒有指定 `navWeight` 的文檔,則按照 `title` 進行字母升序排序。

Expand Down