Liquid tags

Liquid tags are the programming logic that tells templates what to do. Tags are wrapped in: {% %} characters.

Certain tags, such as for and cycle can take on parameters. Details for each parameter can be found in their respective sections.

In this section:

  • Iteration tags Iteration tags run blocks of code repeatedly.

  • Control flow tags Control flow tags create conditions that decide whether blocks of Liquid code get executed.

  • Variable tags Use variable tags to create new Liquid variables.

  • Deprecated tags Learn which Liquid tags have been deprecated, and the alternatives that are available.

  • Theme tags Theme tags output HTML markup specific to your template, define theme layouts and snippets, and break up returned arrays into more than one page.