timvink / mkdocs-git-revision-date-localized-plugin

MkDocs plugin to add a last updated date to your site pages
https://timvink.github.io/mkdocs-git-revision-date-localized-plugin/index.html
MIT License
210 stars 45 forks source link

Feature Request: Show datetime on hover when using timeago #131

Open mschoettle opened 7 months ago

mschoettle commented 7 months ago

When using the timeago visualization it would be nice to be able to see the actual date when hovering over the "x ago" text.

I believe adding the title attribute to the <span> element should be sufficient. Although it raises the question of which format to use in there.

timvink commented 1 month ago

Yes this is an easy change, we can add a title attribute here:

https://github.com/timvink/mkdocs-git-revision-date-localized-plugin/blob/2e7646ee3405d8793e5ebb83eb45f7aa9407b205/src/mkdocs_git_revision_date_localized_plugin/util.py#L191

The CSS styling for a popup is on the user of course.

Would you like to make a contribution?

mschoettle commented 1 month ago

Thanks for pointing at the right place, @timvink.

Would you like to make a contribution?

Yes! Created #152 with a simple solution reusing the datetime format.