Skip to content

Commit

Permalink
Fixed small typo (#355)
Browse files Browse the repository at this point in the history
Credit to @RCheesley
  • Loading branch information
RCheesley authored and Luke Towers committed Feb 11, 2019
1 parent 89dca38 commit d52b4e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cms-partials.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ The `{% partial "partial-name" %}` Twig tag renders a partial. The tag has a sin
<a name="partial-variables"></a>
## Passing variables to partials

You will find that you often need to pass variables to a partial from the external code. This makes partials even more useful. For example, you can have a partial that renders a list of blog post. If you can pass the post collection to the partial, the same partial could be used on the blog archive page, on the blog category page and so on. You can pass variables to partials by specifying them after the partial name in the `{% partial %}` tag:
You will find that you often need to pass variables to a partial from the external code. This makes partials even more useful. For example, you can have a partial that renders a list of blog posts. If you can pass the post collection to the partial, the same partial could be used on the blog archive page, on the blog category page and so on. You can pass variables to partials by specifying them after the partial name in the `{% partial %}` tag:

<div class="sidebar">
{% partial "blog-posts" posts=posts %}
Expand Down

0 comments on commit d52b4e7

Please sign in to comment.