feat: allow sorting tags based on post count (#344)

Co-authored-by: welpo <welpo@users.noreply.github.com>
This commit is contained in:
Phil Schumann 2024-06-29 17:39:31 +02:00 committed by GitHub
parent a907f56bd5
commit 3d3f62cf20
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 49 additions and 1 deletions

View file

@ -237,6 +237,16 @@ Setting `compact_tags = true` will display them as:
[TagName](#) <sup>n</sup>
### Tags Sorting
| Page | Section | `config.toml` | Follows Hierarchy | Requires JavaScript |
|:----:|:-------:|:-------------:|:-----------------:|:-------------------:|
| ❌ | ❌ | ✅ | ❌ | ❌ |
By default, the [tags page](/tags) sorts tags alphabetically, given the default setting of `tag_sorting = "name"`.
Setting `tag_sorting = "frequency"` will sort them by number-of-posts (descending).
---
## Git Repository Integration