forked from github/pelican
default tags to []
This commit is contained in:
parent
f9f6da0a43
commit
dfb214d47d
1 changed files with 1 additions and 1 deletions
|
|
@ -220,7 +220,7 @@ class ArticlesGenerator(Generator):
|
|||
# create tag cloud
|
||||
tag_cloud = defaultdict(int)
|
||||
for article in self.articles:
|
||||
for tag in article.tags:
|
||||
for tag in getattr(article, 'tags', []):
|
||||
tag_cloud[tag] += 1
|
||||
|
||||
tag_cloud = sorted(tag_cloud.items(), key = itemgetter(1), reverse = True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue