fix template.rb for blacklight 5.x