-
-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨ feat: add date visibility options to post list #330
Conversation
✅ Deploy Preview for tabi-demo ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There are still open tasks:
|
Thanks for working on this! I've:
I have also changed the formatting a bit, removing the separator. BeforeAfterI think this looks cleaner. What are your thoughts? An alternative that looks even cleaner, to my eyes, without any losses, is changing "Last updated on" to "Updated on". The message is the same, but it looks neater: This would require changing all i18n strings (I'd do that on another PR), and I could use the opportunity to use string substitution, as not all languages use the What are your thoughts on the current redesign (sans the separator)? And how about the shortened version ("Updated on" instead of "Last updated on"? |
Thank you!
With a wide screen this would be my preferred design too but I don't like the design on smaller screens. That was the reason I added the separator:
I like that one! |
Aah great catch! I'll do a separator only for mobile/narrow screens, then! |
Done! I've modified |
It is looking great now. Thank you! |
There is an error now, if there is no "updated" date in the blog post 🤔 |
Thanks for the catch and fix! |
I'll try to do some thorough testing and write the docs this week, then we can merge :) |
Done! You can see it in the PR demo. Could I ask you to do some final testing, trying to break the feature, before we merge? |
Thank you so much!
I would love to test it.
I'll be away for a week from now and pretty much offline, unfortunately
I won't be able to work on it until after that.
On Thu, 2024-06-20 at 14:11 -0700, Óscar wrote:
> There are still open tasks:
> * documentation
>
> * rss / atom site that implements the new options
Done! You can see it in the PR demo [1].
Could I ask you to do some final testing, trying to break the
feature, before we merge?
—
Reply to this email directly, view it on GitHub [2], or unsubscribe
[3].
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
No worries! There's no rush. |
ed1c179
to
4145364
Compare
ahhh, pressed the wrong button to sync the forked repo with your upstream repo.. :-( |
Can you undo the changes? If not, I can give it a go. |
I've tried it, but it doesn't feel like a clean state. So please give it a go. |
Should be solved! I'll test a bit tomorrow to ensure everything works as expected. Let me know if you can do the same~ |
Co-authored-by: sam <[email protected]> Co-authored-by: welpo <[email protected]>
Great catch! Fixed it. Thank for for testing it. I'll do some more testing now and, hopefully, merge.
There is! I just tested for a bit and I think we can make that happen without breaking anything. Feel free to open another issue to discuss this :) |
Ha, no more complaints now. Amazing!
Thank you, maybe I'll get to it at the weekend :) |
Just pushed one more commit to:
Time to merge! |
Done! Thanks for suggesting the feature and working on it! |
Check out #357! |
I would like to join the discussion. I updated the tabi, checked the contents of the files, added the appropriate key in the config.toml file ( |
The option was renamed to |
Hi! The relevant lines in the config.toml are: # 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. 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" Line 153 in 82f7a98
https://welpo.github.io/tabi/blog/mastering-tabi-settings/#display-the-date-of-posts-in-listing The key |
It works with |
Summary
This pull request adds an option to the config.toml to change the displayed dates on the bloglist.
Related issue
#326
Changes
config.toml
Accessibility
Screenshots
See the dates on the left side
Option bloglist_date = "updated":
Option bloglist_date = "date":
Option bloglist_date = "both":
Type of change
Checklist
theme.toml
with a sane default for the featureconfig.toml
commentstheme.toml
comments