Compare commits
2 commits
64fc417a4c
...
803abfaf97
Author | SHA1 | Date | |
---|---|---|---|
803abfaf97 | |||
21207918bb |
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ def ap_article(generator: pelican.ArticlesGenerator, writer: pelican.writers.Wri
|
|||
path = os.path.join(writer.output_path, 'activitypub/tags', t.slug)
|
||||
articles = []
|
||||
for article in generator.articles:
|
||||
if t.name not in article.metadata['tags']:
|
||||
if t.name not in article.metadata.get('tags', []):
|
||||
continue
|
||||
articles.append(
|
||||
os.path.join(generator.settings['SITEURL'], 'activitypub/posts', article.slug)
|
||||
|
|
Loading…
Reference in a new issue