Skip to content

Commit 7d4b7c5

Browse files
authored
fix(rss): email and name were inverted in output and so uncompliant (#343)
Related to: #250 See: https://validator.w3.org/feed/docs/error/InvalidContact.html Before: ```xml <author>John Doe (John.Doe@example.com)</author> ``` After: ```xml <author>John.Doe@example.com (John Doe)</author> ``` cc @stefansli
2 parents 7569e08 + 1752ef1 commit 7d4b7c5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mkdocs_rss_plugin/integrations/theme_material_blog_plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def author_name_from_id(self, author_id: str) -> str:
124124
if author_id in self.blog_plugin_cfg.authors:
125125
author_metadata = self.blog_plugin_cfg.authors.get(author_id)
126126
if "email" in self.blog_plugin_cfg.authors.get(author_id):
127-
return f"{author_metadata.get('name')} ({author_metadata.get('email')})"
127+
return f"{author_metadata.get('email')} ({author_metadata.get('name')})"
128128
else:
129129
return author_metadata.get("name")
130130
else:

0 commit comments

Comments
 (0)