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