forked from github/pelican
Create a Tag class which has a url property
This commit is contained in:
parent
6754099730
commit
f9ed01bb64
4 changed files with 24 additions and 4 deletions
|
|
@ -179,7 +179,7 @@ class ArticlesGenerator(Generator):
|
|||
for tag, articles in self.tags.items():
|
||||
articles.sort(key=attrgetter('date'), reverse=True)
|
||||
dates = [article for article in self.dates if article in articles]
|
||||
write('tag/%s.html' % tag, tag_template, self.context, tag=tag,
|
||||
write(tag.url, tag_template, self.context, tag=tag,
|
||||
articles=articles, dates=dates,
|
||||
paginated={'articles': articles, 'dates': dates},
|
||||
page_name='tag/%s' % tag)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue