Skip to content Skip to footer navigation

Partial Modifier

Inject a variable's data into a partial and render it without any page scopes whatsoever. This is really just syntactical sugar, but it is delicious.

data:
title: Bubble Guppies
content: Science died a little bit today.
<!-- /site/themes/<your_theme>/partials/demo.html -->
<h1>{{ title }}</h1>
{{ content | markdown }}
 
<!-- Template Markup -->
{{ data | partial('demo') }}
<h1>Bubble Guppies</h1>
<p>Science died a little bit today.</p>