Footer and layouts

Stand-alone PR for #1178.