Skip to content

Commit 5da52e5

Browse files
Update tag_from_path.py
1 parent 5eeedc6 commit 5da52e5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

plugins/tag_from_path.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55

66
def tag_from_path(article_generator: ArticlesGenerator, content: Article) -> None:
7+
if not hasattr(content, "tags"):
8+
content.tags = []
79
content.tags.append(article.tag)
810

911

0 commit comments

Comments
 (0)