Compare commits
2 commits
803abfaf97
...
64fc417a4c
Author | SHA1 | Date | |
---|---|---|---|
64fc417a4c | |||
604f9ff8f2 |
3 changed files with 7 additions and 4 deletions
|
@ -12,7 +12,7 @@ from pelican import signals
|
|||
log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
__version__ = '0.1.1'
|
||||
__version__ = '0.1.2'
|
||||
|
||||
pagination = 25
|
||||
|
||||
|
@ -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.tags:
|
||||
if t.name not in article.metadata['tags']:
|
||||
continue
|
||||
articles.append(
|
||||
os.path.join(generator.settings['SITEURL'], 'activitypub/posts', article.slug)
|
||||
|
@ -126,7 +126,7 @@ def ap_article(generator: pelican.ArticlesGenerator, writer: pelican.writers.Wri
|
|||
aurl = os.path.join(generator.settings['SITEURL'], 'activitypub/posts', article.slug)
|
||||
apath = os.path.join(writer.output_path, 'activitypub/posts', article.slug)
|
||||
tags = []
|
||||
for tag in article.tags:
|
||||
for tag in article.metadata.get('tags', []):
|
||||
tags.append({
|
||||
'type': 'Hashtag',
|
||||
'name': '#' + tag.slug,
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
[project]
|
||||
name = "pelican-plugin-activitypub"
|
||||
version = "0.1.1"
|
||||
dynamic = ["version"]
|
||||
description = "Pelican plugin implementing Activitypub"
|
||||
authors = [{name = "s3lph", email = "s3lph@kabelsalat.ch"}, {name = "Tobias Schmidl", email = "tobias@schmidl.dev"}]
|
||||
license = { text = "MIT" }
|
||||
|
@ -37,3 +37,6 @@ Tracker = "https://git.kabelsalat.ch/s3lph/pelican-plugin-activitypub/issues"
|
|||
[build-system]
|
||||
requires = ["setuptools >= 61.0"]
|
||||
build-backend = "setuptools.build_meta"
|
||||
|
||||
[tool.setuptools.dynamic]
|
||||
version = {attr = "pelican.plugins.activitypub.activitypub.__version__"}
|
||||
|
|
Loading…
Reference in a new issue