Skip to content

A Nested Page

This is an example of a page that doesn’t have a permalink defined, and is not included in the table of contents (_data/toc.yml). This means that it will render based on it’s path. Since it’s in docs/, the url will be docs/example-page/.

Now let’s say we want to link to a subfolder, specifically with this setup:

docs/  (-- we are here
  subfolder/  (-- we want to link here

You can provide the relative path to the file, like subfolder/ and Jekyll will handle parsing it. For example:

And here is the same link, but generated with the include statement:

{% include doc.html name="here" path="subfolder/example-page" %}