r:each
The
r:each
tag enables you to loop through a series of items and format
them according to the markup you've specified within the
r:each
tag. These items can be pages, files, or blog posts.
Example:
<r:blog:articles>
<r:each>
<!-- This is the content of each article -->
</r:each>
</r:blog:articles>
Example 2:
You can also use r:each
as an attribute on other tags:
<r:children:each>
<!-- This is the content of each child page -->
</r:children:each>
r:each
In Liquid, r:each
is the same as r:loop
—they are both forms of iteration. Check out the documentation for r:loop
/for
to learn more about for
loops in Liquid.
Last updated on March 15, 2021.
We welcome all questions, feedback and bug reports. If you're having an issue, we usually need the following information:
- A brief description of the issue
- A link to the page where you saw the issue
- Screenshots that illustrate the problem - How do I take a screenshot?
Kindly email CleanSlate@mail.wvu.edu for help or use the form on the request help page.