feat: add date visibility options to post list (#330)

Co-authored-by: welpo <welpo@users.noreply.github.com>
This commit is contained in:
sam 2024-07-11 23:19:14 +02:00 committed by GitHub
parent 57ff693eca
commit a76d6888b6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 130 additions and 30 deletions

View file

@ -1,7 +1,7 @@
+++
title = "Mastering tabi Settings: A Comprehensive Guide"
date = 2023-09-18
updated = 2024-07-04
updated = 2024-07-09
description = "Discover the many ways you can customise your tabi site."
[taxonomies]
@ -141,6 +141,14 @@ Notice how if you set `section_path`, you don't need to set `paginate_by`. You c
The `title` is the header that appears above the posts.
##### Display the Date of Posts in Listing
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.
- `both`: Show both the original date and the last updated 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.