Support a custom file extension.
Define the posts path here.
Don't overly complicate things and don't look for paths in the config. Don't pass the posts path to post writing.