Add a hook for generating the alas for pages.