mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Create a Author class which has a url property
This commit is contained in:
parent
f9ed01bb64
commit
ff9c786149
6 changed files with 28 additions and 30 deletions
|
|
@ -195,7 +195,7 @@ class ArticlesGenerator(Generator):
|
|||
author_template = self.get_template('author')
|
||||
for aut, articles in self.authors:
|
||||
dates = [article for article in self.dates if article in articles]
|
||||
write('author/%s.html' % aut, author_template, self.context,
|
||||
write(aut.url, author_template, self.context,
|
||||
author=aut, articles=articles, dates=dates,
|
||||
paginated={'articles': articles, 'dates': dates},
|
||||
page_name='author/%s' % aut)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue