feat: add site parameter geekdocFileTreeSortBy
to controle filetree menu sorting (#237)
This commit is contained in:
parent
2e2d1549ab
commit
761caeee47
2 changed files with 40 additions and 1 deletions
|
@ -106,6 +106,11 @@ enableRobotsTXT = true
|
|||
|
||||
# (Optional, default false) Enable or disable adding tags for post pages automatically to the navigation sidebar.
|
||||
geekdocTagsToMenu = true
|
||||
|
||||
# (Optional, default 'title') Configure how to sort file-tree menu entries. Possible options are 'title', 'linktitle',
|
||||
# 'date', 'publishdate', 'expirydate' or 'lastmod'. Every option can be used with a reverse modifier as well
|
||||
# e.g. 'title_reverse'.
|
||||
geekdocFileTreeSortBy = "title"
|
||||
```
|
||||
|
||||
{{< /tab >}}
|
||||
|
@ -214,6 +219,11 @@ params:
|
|||
|
||||
# (Optional, default false) Enable or disable adding tags for post pages automatically to the navigation sidebar.
|
||||
geekdocTagsToMenu: true
|
||||
|
||||
# (Optional, default 'title') Configure how to sort file-tree menu entries. Possible options are 'title', 'linktitle',
|
||||
# 'date', 'publishdate', 'expirydate' or 'lastmod'. Every option can be used with a reverse modifier as well
|
||||
# e.g. 'title_reverse'.
|
||||
geekdocFileTreeSortBy: "title"
|
||||
```
|
||||
|
||||
{{< /tab >}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue