fix site_local
authorNIIBE Yutaka <gniibe@fsij.org>
Mon, 9 Nov 2015 08:40:06 +0000 (17:40 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Mon, 9 Nov 2015 08:40:06 +0000 (17:40 +0900)
plugins/site_local/site.py

index b069397..a3d9a93 100644 (file)
@@ -6,6 +6,9 @@ def show_this_plugin(sender):
 def setup_articles(sender):
     # Don't generate authors index
     sender.authors = []
+
+# Call this routine from setup_articles when tag_cloud will be enabled.
+def setup_tag_cloud(sender):
     # Make tag_cloud deterministic, but somewhat random
     sender.tag_cloud.sort(key=lambda x: hash(x))
     sender._update_context(('authors', 'tag_cloud',))