diff --git a/basics/introduction.md b/basics/introduction.md index 940952af..6db1fec1 100644 --- a/basics/introduction.md +++ b/basics/introduction.md @@ -1,5 +1,6 @@ --- title: Introduction +description: An overview of objects, tags, and filters in the Liquid template language. --- Liquid code can be categorized into [**objects**](#objects), [**tags**](#tags), and [**filters**](#filters). diff --git a/basics/operators.md b/basics/operators.md index 522805be..1b463558 100644 --- a/basics/operators.md +++ b/basics/operators.md @@ -1,5 +1,6 @@ --- title: Operators +description: Using operators to perform calculations in the Liquid template language. --- Liquid includes many logical and comparison operators. diff --git a/basics/truthy-and-falsy.md b/basics/truthy-and-falsy.md index f7d1e568..b1fffb97 100644 --- a/basics/truthy-and-falsy.md +++ b/basics/truthy-and-falsy.md @@ -1,5 +1,6 @@ --- title: Truthy and falsy +description: An overview of boolean logic in the Liquid template language. --- In programming, anything that returns `true` in a conditional is called **truthy**. Anything that returns `false` in a conditional is called **falsy**. All object types can be described as either truthy or falsy. diff --git a/basics/types.md b/basics/types.md index ee1b23c0..93a40f09 100644 --- a/basics/types.md +++ b/basics/types.md @@ -1,5 +1,6 @@ --- title: Types +description: An overview of data types in the Liquid template language. --- Liquid objects can have one of six types: diff --git a/basics/whitespace.md b/basics/whitespace.md index 4e708aba..337ea43c 100644 --- a/basics/whitespace.md +++ b/basics/whitespace.md @@ -1,5 +1,6 @@ --- title: Whitespace control +description: An overview of controlling whitespace between code in the Liquid template language. --- In Liquid, you can include a hyphen in your tag syntax `{% raw %}{{-{% endraw %}`, `{% raw %}-}}{% endraw %}`, `{% raw %}{%-{% endraw %}`, and `{% raw %}-%}{% endraw %}` to strip whitespace from the left or right side of a rendered tag. diff --git a/tags/control-flow.md b/tags/control-flow.md index 8b89d83b..f1e47f3a 100644 --- a/tags/control-flow.md +++ b/tags/control-flow.md @@ -1,5 +1,6 @@ --- title: Control flow +description: An overview of control flow and conditional tags in the Liquid template language. --- Control flow tags can change the information Liquid shows using programming logic. diff --git a/tags/index.md b/tags/index.md index 94dfb28a..46758784 100644 --- a/tags/index.md +++ b/tags/index.md @@ -1,16 +1,3 @@ --- -title: Tags -type: index +redirect_to: /liquid/tags/control-flow --- - -**Tags** create the logic and control flow for templates. They are denoted by curly braces and percent signs: {% raw %}`{%` and `%}`{% endraw %}. - -The markup used in tags does not produce any visible text. This means that you can assign variables and create conditions and loops without showing any of the Liquid logic on the page. - -{% assign tag_pages = site.pages | where: 'type', 'tag' %} - -{% for item in tag_pages %} -## [{{ item.title }}]({{ item.url | prepend: site.baseurl }}) - -{{ item.content }} -{% endfor %} diff --git a/tags/iteration.md b/tags/iteration.md index c8ecc4a6..e411a725 100644 --- a/tags/iteration.md +++ b/tags/iteration.md @@ -1,5 +1,6 @@ --- title: Iteration +description: An overview of iteration or 'loop' tags in the Liquid template language. --- Iteration tags run blocks of code repeatedly. diff --git a/tags/variable.md b/tags/variable.md index 920bdd0a..16ca9d58 100644 --- a/tags/variable.md +++ b/tags/variable.md @@ -1,5 +1,6 @@ --- title: Variable +description: An overview of tags for creating variables in the Liquid template language. --- Variable tags create new Liquid variables.