Skip to content

Commit 393439e

Browse files
committed
Fix keyword cleaning
1 parent f384d37 commit 393439e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

markdown_frontmatter_cleanup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ def clean_tags(frontmatter: dict) -> dict:
3838
return frontmatter
3939

4040
def clean_keywords(frontmatter: dict) -> dict:
41-
# Ensure the 'tags' key has unique elements, capitalizing the first letter
42-
if 'keywords' in frontmatter and isinstance(frontmatter['tags'], list):
41+
# Ensure the 'keywords' key has unique elements, capitalizing the first letter
42+
if 'keywords' in frontmatter and isinstance(frontmatter['keywords'], list):
4343
# Normalize by capitalizing the first letter of each tag and removing duplicates (case-insensitive)
4444
unique_tags = set() # To ensure uniqueness
4545
cleaned_tags = []

0 commit comments

Comments
 (0)