diff --git a/exampleSite/content/usage/configuration.md b/exampleSite/content/usage/configuration.md index 4b8070a..95b6c23 100644 --- a/exampleSite/content/usage/configuration.md +++ b/exampleSite/content/usage/configuration.md @@ -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 >}} diff --git a/layouts/partials/menu-filetree.html b/layouts/partials/menu-filetree.html index 6024a06..5214b07 100644 --- a/layouts/partials/menu-filetree.html +++ b/layouts/partials/menu-filetree.html @@ -6,8 +6,37 @@ {{ $current := .current }}