From 4295ac31327d0c3639ec41a7b55617931c2d44f0 Mon Sep 17 00:00:00 2001 From: Matthias Schoettle Date: Wed, 30 Oct 2024 09:52:45 -0400 Subject: [PATCH] Add datetime string to span element as title --- src/mkdocs_git_revision_date_localized_plugin/util.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mkdocs_git_revision_date_localized_plugin/util.py b/src/mkdocs_git_revision_date_localized_plugin/util.py index 275f6b5..6287209 100644 --- a/src/mkdocs_git_revision_date_localized_plugin/util.py +++ b/src/mkdocs_git_revision_date_localized_plugin/util.py @@ -186,9 +186,10 @@ def add_spans(date_formats: Dict[str, str]) -> Dict[str, str]: """ Wraps the date string in elements with CSS identifiers. """ + datetime_string = date_formats['datetime'] for date_type, date_string in date_formats.items(): date_formats[date_type] = ( - '%s' - % (date_type, date_string) + '%s' + % (date_type, datetime_string, date_string) ) return date_formats