Skip to content

Commit

Permalink
docs: update docs layout (#812)
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Nov 21, 2022
1 parent 96923d9 commit 7cc4320
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
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

0 comments on commit 7cc4320

Please sign in to comment.