Permalink
Browse files

removed: sort_tags widget

  • Loading branch information...
1 parent 345d9b6 commit 09a9b27cf2f860e432c36b835f5003ca03c4ca15 @bow committed May 12, 2012
Showing with 1 addition and 10 deletions.
  1. +0 −3 voltconf.py
  2. +1 −7 widgets.py
View
@@ -49,9 +49,6 @@
'syntax',
'atomic',
),
- WIDGETS = (
- 'sort_tags',
- )
)
# Plugins configurations
View
@@ -5,6 +5,7 @@ def header_taglink(tags):
"""Jinja2 filter for displaying blog tag links."""
blog_url = '/blog'
string = '<a href="%s/tag/%s/" class="button red">%s</a>'
+ tags.sort()
return ', '.join([string % (blog_url, tag, tag) for tag in tags])
@@ -19,10 +20,3 @@ def header_timelink(time_obj):
year_url = time_url % (blog_url, time_obj.strftime("%Y"), year)
return '%s%s' % (month_url, year_url)
-
-
-def sort_tags(engine):
- """Widget for sorting blog tags."""
- for unit in engine.units:
- unit.tags.sort()
- return

0 comments on commit 09a9b27

Please sign in to comment.