Replies: 4 comments 1 reply
-
Yeah, this feature is in my backlog and I would like to add it. I see two ways:
Not too sure about which way I'd prefer to go. In any case: would you be interested in contributing the implementation of the feature? |
Beta Was this translation helpful? Give feedback.
-
From my perspective, the only viable option would be to use JS to generate the warning dynamically. The other approach doesn't seem practical. Just as you mentioned, if someone sets the threshold to 120 days but doesn’t rebuild their site for over a year, the alert would never appear once that threshold is reached. Just like other features in tabi that require JS and are documented as such, this could follow the same approach. By default, it wouldn’t be enabled, but users could choose to activate it, keeping in mind that their site would need JS for it to work. I'd be happy to contribute to this feature. Let me know if you have any preferences on the implementation or any guidelines I should follow! |
Beta Was this translation helpful? Give feedback.
-
I'm thinking of a middle ground:
Important to note that the This way we get JS-free warnings on build, and a fallback for non-potentially-outdated posts. Does this make sense? |
Beta Was this translation helpful? Give feedback.
-
Respecting the configuration hierarchy allows for more granular control over when the warning is displayed. Some examples:
Regarding the logic you proposed, I think it makes sense. flowchart TD
A{"Is 'updated' set?"}
A -- Yes --> B{"Has 'updated' exceeded threshold?"}
B -- Yes --> C["Display warning"]
B -- No --> D["Do not display warning"]
A -- No --> E{"Is 'date' set?"}
E -- Yes --> F{"Has 'date' exceeded threshold?"}
F -- Yes --> C
F -- No --> D
E -- No --> D
|
Beta Was this translation helpful? Give feedback.
-
I recently came across an interesting feature in another Zola theme, serene, and thought it could be a great addition to Tabi. The feature is an "out of date content" alert that warns readers when a post might contain outdated information.
In serene, this alert appears below the post title and before the main content. It can be enabled globally or set individually for each post. An example of this feature in action can be seen here.
Suggestion for Tabi
It would be great to implement a similar configuration in Tabi, allowing users to enable the alert either globally or per blog post. This setting should not affect other sections, such as the "Projects" section.
Would it be possible to implement a similar feature in Tabi? 😊
Beta Was this translation helpful? Give feedback.
All reactions