handle
The handle of the resource associated with the current template.
The handle object returns a value only when the template is associated with one of the following resource types:
- article object
- blog object
- collection object
- page object
- product object
If the current template is associated with any other resource type, the handle object returns nil.
Example
The following example is used to set the Open Graph title of different resource pages to the handle of the corresponding resource.
<meta property="og:title" content="{{handle}}">
Was this article helpful to you?