Page path in Jekyll

{{ page.dir }}

First and last character of page path is "/".

This is the path into the generated site output. It corresponds to the URI path, without filename.

dir can be overwritten by placing a permalink in front matter of page.

Example output:

/en-US/jekyll/

See also: