initialize template with index and basic pages