From 103b8ba263405125d752572d28a0636f75d1d9f9 Mon Sep 17 00:00:00 2001 From: Sam Date: Sun, 14 Jul 2024 16:00:04 +0200 Subject: [PATCH] Add documentation. If there is no last updated date, it shows the original date. --- config.toml | 2 +- content/blog/mastering-tabi-settings/index.md | 6 +++++- theme.toml | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/config.toml b/config.toml index 29d607b1f..d21592414 100644 --- a/config.toml +++ b/config.toml @@ -148,7 +148,7 @@ show_date = true # Determines how dates are displayed in the post listing (e.g. front page or /blog). Options: # "date" - Show only the original date of the post (default if unset). -# "updated" - Show only the last updated date of the post. +# "updated" - Show only the last updated date of the post. If there is no last updated date, it shows the original date. # "both" - Show both the original date and the last updated date. post_listing_date = "date" diff --git a/content/blog/mastering-tabi-settings/index.md b/content/blog/mastering-tabi-settings/index.md index 32c5dbd32..05bfe2fea 100644 --- a/content/blog/mastering-tabi-settings/index.md +++ b/content/blog/mastering-tabi-settings/index.md @@ -146,9 +146,13 @@ The `title` is the header that appears above the posts. By default, when listing posts, the date of post creation is shown. You can configure which date(s) to display using the `post_listing_date` option. Available settings: - `date`: Show only the original date of the post (default). -- `updated`: Show only the last updated date of the post. +- `updated`: Show only the last updated date of the post. If there is no last updated date, it shows the original date. - `both`: Show both the original date and the last updated date. +```toml +post_listing_date = "date" +``` + #### Listing Projects You can showcase a selection of projects on your main page. To do this, you'll need to set up the `projects` directory first. diff --git a/theme.toml b/theme.toml index 957bd9a3d..e9ff512ed 100644 --- a/theme.toml +++ b/theme.toml @@ -105,7 +105,7 @@ show_date = true # Determines how dates are displayed in the post listing (e.g. front page or /blog). Options: # "date" - Show only the original date of the post (default if unset). -# "updated" - Show only the last updated date of the post. +# "updated" - Show only the last updated date of the post. If there is no last updated date, it shows the original date. # "both" - Show both the original date and the last updated date. post_listing_date = "date"