Converted from ERB to HAML including modifying the index template.