1
0
Fork 0
forked from github/pelican

Added tag cloud generation. Result stored in the context.tag_cloud as list of tuples (tag, weight). Weight is from 1 to TAG_CLOUD_STEPS, lesser weight corresponds to bigger font size.

This commit is contained in:
Alexander Artemenko 2011-01-01 23:08:29 +03:00
commit b3256f0ecd
3 changed files with 34 additions and 2 deletions

View file

@ -22,6 +22,8 @@ _DEFAULT_CONFIG = {'PATH': None,
'CLEAN_URLS': False, # use /blah/ instead /blah.html in urls
'RELATIVE_URLS': True,
'DEFAULT_LANG': 'en',
'TAG_CLOUD_STEPS': 4,
'TAG_CLOUD_MAX_ITEMS': 100,
}
def read_settings(filename):