Permlinks plugins adds _dir (dirname(_path)) to metadata

It is easier to link to other pages this way, with very
minimal templating systems, like whisker, that cannot
calculate dirname from the path.