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