Can you move all this code minus the {% block ... %} bits directly into views/index.html?