Mixin for handling header/footer