feat: Store articles in dict by title
This commit is contained in:
@@ -6,6 +6,7 @@ from pelican import signals
|
|||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
def modify_feed(context, feed):
|
def modify_feed(context, feed):
|
||||||
|
articles = {}
|
||||||
pprint.pprint(context)
|
pprint.pprint(context)
|
||||||
|
|
||||||
print()
|
print()
|
||||||
@@ -14,6 +15,7 @@ def modify_feed(context, feed):
|
|||||||
|
|
||||||
if 'articles' in context:
|
if 'articles' in context:
|
||||||
for article in context['articles']:
|
for article in context['articles']:
|
||||||
|
articles[article.title] = article
|
||||||
pprint.pprint(article.__dict__)
|
pprint.pprint(article.__dict__)
|
||||||
break
|
break
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user