feat: optional alternative tags sort order based on posts count

This commit is contained in:
Phil Schumann 2024-06-29 09:07:36 +02:00 committed by welpo
parent 82ecbc1454
commit c685b95f9e
No known key found for this signature in database
GPG key ID: A2F978CF4EC1F5A6
4 changed files with 23 additions and 0 deletions

View file

@ -225,6 +225,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