mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Tabs replaced by spaces
This commit is contained in:
parent
421dc21f72
commit
752e9d1c75
1 changed files with 4 additions and 4 deletions
|
|
@ -185,8 +185,8 @@ class ArticlesGenerator(Generator):
|
|||
|
||||
if os.path.dirname(f) == self.path:
|
||||
category = self.settings['DEFAULT_CATEGORY']
|
||||
else:
|
||||
category = os.path.basename(os.path.dirname(f))
|
||||
else:
|
||||
category = os.path.basename(os.path.dirname(f))
|
||||
|
||||
if category != '':
|
||||
metadatas['category'] = unicode(category)
|
||||
|
|
@ -228,8 +228,8 @@ class ArticlesGenerator(Generator):
|
|||
tag_cloud = tag_cloud[:self.settings.get('TAG_CLOUD_MAX_ITEMS')]
|
||||
|
||||
tags = map(itemgetter(1), tag_cloud)
|
||||
if tags:
|
||||
max_count = max(tags)
|
||||
if tags:
|
||||
max_count = max(tags)
|
||||
steps = self.settings.get('TAG_CLOUD_STEPS')
|
||||
|
||||
# calculate word sizes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue