feat(tags): add compact_tags option (#232)

Co-authored-by: arichtman <10679234+arichtman@users.noreply.github.com>
This commit is contained in:
Óscar Fernández
2023-12-30 16:41:08 +01:00
committed by GitHub
parent 0b13dd306d
commit d257e022ea
6 changed files with 79 additions and 12 deletions

View File

@@ -1,7 +1,7 @@
+++
title = "Mastering tabi Settings: A Comprehensive Guide"
date = 2023-09-18
updated = 2023-12-04
updated = 2023-12-30
description = "Discover the many ways you can customise your tabi site."
[taxonomies]
@@ -142,6 +142,20 @@ You can set it in `config.toml` like `browser_theme_colour = "#087e96"`. If you'
This variable accepts any valid CSS colour, so you can use keywords (e.g. `blue`), hex codes (e.g. `#087e96`) or RGB/HSL values (e.g. `rgb(8, 126, 150)`).
### Compact Tags
| Page | Section | `config.toml` | Follows Hierarchy | Requires JavaScript |
|:----:|:-------:|:-------------:|:-----------------:|:-------------------:|
| ❌ | ❌ | ✅ | ❌ | ❌ |
By default, the [tags page](/tags) displays tags as:
[TagName](#) — n post[s]
Setting `compact_tags = true` will display them as:
[TagName](#) <sup>n</sup>
---
## Git Repository Integration