Skip to content

Commit 1466873

Browse files
committed
workaround: rank math does not let us update
rank_math_twitter_description rank_math_facebook_description rank_math_canonical_url rank_math_focus_keyword
1 parent 66da962 commit 1466873

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

.release

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
release=1.5.2
2-
tag=1.5.2
1+
release=1.5.2.patch1
2+
tag=1.5.2.patch1
33
pre_tag_command=sed -i '' -e 's/version="[^"]*"/version="@@RELEASE@@"/g' setup.py && sed -i '' -e 's^\(ghcr.io/binxio/wordpress-markdown-blog-loader:\)[^ \t]*^\1@@RELEASE@@^g' README.md

src/wordpress_markdown_blog_loader/blog.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -387,15 +387,14 @@ def to_wordpress(self, wp: Wordpress) -> dict:
387387

388388
metadesc = self.og_description if self.og_description else self.excerpt
389389
result["meta"] = {
390-
"rank_math_facebook_description": metadesc,
391-
"rank_math_twitter_description": metadesc,
390+
# "rank_math_facebook_description": metadesc,
391+
# "rank_math_twitter_description": metadesc,
392392
}
393-
394-
if self.canonical:
395-
result["meta"]["rank_math_canonical_url"] = self.canonical
396-
397-
if self.focus_keywords:
398-
result["meta"]["rank_math_focus_keyword"] = ','.join(self.focus_keywords.split())
393+
# if self.canonical:
394+
# result["meta"]["rank_math_canonical_url"] = self.canonical
395+
#
396+
# if self.focus_keywords:
397+
# result["meta"]["rank_math_focus_keyword"] = ','.join(self.focus_keywords.split())
399398

400399
return result
401400

0 commit comments

Comments
 (0)