Skip to content

Commit 1752ef1

Browse files
committed
fix(rss): email and name were inverted in output and so uncompliant
Related to: #250 See: https://validator.w3.org/feed/docs/error/InvalidContact.html
1 parent 7569e08 commit 1752ef1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mkdocs_rss_plugin/integrations/theme_material_blog_plugin.py

+1-1
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)