Refactor static_pages_spec and add header and footer