Permalink fixes

* Support for using permalink style when page has date
* Ignore permalink and match file system structure when page does not
have date value