Move layout into pages/base.html and provide content block in index.html through template inheritance.