Learn

parent

Retrieves page variables for the current page's parent page.

{{ parent: }}

The parent tag lets you fetch single variables from any page’s parent page. If you’re on /about/team it will fetch content from /about. It’s that simple.

Sample Usage

{{ parent:title }}
{{ parent:description }}

# Works with tag pairs too:
{{ parent:gallery }}
  <li><img src="{{ photo }}" title="{{ caption }}" /></li>
{{ /parent:gallery }}

Parameters

There are no parameters for this tag.

This article was last updated on September 13th, 2016. Find an error? Please let us know!