old_contents: from django import template
  
  
  register = template.Library()
  
  
  @register.filter
  def get_style(tags, priority):
      max_priority = max(tags, key=lambda tag: tag["priority"])["priority"]
      size = (max_priority / 10.) * priority
      return "font-size: {}em;".format(size)
  
new_contents: from django import template
  
  
  register = template.Library()
  
  
  @register.filter
  def get_style(tags, priority):
      max_priority = max(tags, key=lambda tag: tag["priority"])["priority"]
      size = 100 / max_priority / priority / 2
      return "font-size: {}em;".format(size)
  
subject: Fix tag cloud weird size