Port of https://github.com/poole/hyde to Pelican with slight changes