feat: add option to display/hide date in metadata (#306)

This commit is contained in:
Óscar
2024-05-02 23:32:42 +02:00
committed by GitHub
parent 5bc593b676
commit 0cbd727f25
6 changed files with 45 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
+++
title = "Mastering tabi Settings: A Comprehensive Guide"
date = 2023-09-18
updated = 2024-04-23
updated = 2024-05-02
description = "Discover the many ways you can customise your tabi site."
[taxonomies]
@@ -705,6 +705,14 @@ You can enable or hide the reading time of a post with `show_reading_time`. If y
Since it follows [the hierarchy](#settings-hierarchy), you can enable it or hide it for specific pages or sections. For example, this demo sets `show_reading_time = false` in the [projects](https://welpo.github.io/tabi/projects/) section's [`_index.md`](https://github.com/welpo/tabi/blob/main/content/projects/_index.md?plain=1), so their individual posts don't show the reading time.
### Show Date
| Page | Section | `config.toml` | Follows Hierarchy | Requires JavaScript |
|:----:|:-------:|:-------------:|:-----------------:|:-------------------:|
| ✅ | ✅ | ✅ | ✅ | ❌ |
By default, the date is shown below the post title. You can hide it with `show_date = false`. This setting follows [the hierarchy](#settings-hierarchy).
### Date Format
| Page | Section | `config.toml` | Follows Hierarchy | Requires JavaScript |