Skip to content

Commit

Permalink
fix: update twitter and facebook des riptions too
Browse files Browse the repository at this point in the history
  • Loading branch information
mvanholsteijn committed Oct 4, 2023
1 parent 02c26ef commit da8b5c4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/wordpress_markdown_blog_loader/blog.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,12 @@ def to_wordpress(self, wp: Wordpress) -> dict:
)

metadesc = self.og_description if self.og_description else self.excerpt
result["meta"] = {"yoast_wpseo_metadesc": metadesc}
result["meta"] = {
"yoast_wpseo_metadesc": metadesc,
"yoast_wpseo_opengraph-description": metadesc,
"yoast_wpseo_twitter-description": metadesc,
}

if self.canonical:
result["meta"]["yoast_wpseo_canonical"] = self.canonical

Expand Down

0 comments on commit da8b5c4

Please sign in to comment.