allow explicit override of publish date

Restore the original logic for getting a publish date from the metadata
and use it as the default for a page, only going to git if no explicit
value is provided.