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

Some tags, such as for and cycle, accept parameters. The sections of each tag describe its parameters.

In this section

  • Control flow tags – create conditions that decide whether blocks of Liquid code run.
  • Deprecated tags – which Liquid tags are deprecated and what to use instead.
  • Iteration tags – run blocks of code repeatedly.
  • Theme tags – output template-specific HTML, define layouts, sections and snippets, and split returned arrays into pages.
  • Variable tags – create new Liquid variables.