diff --git a/basics/introduction.md b/basics/introduction.md index 940952a..6db1fec 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 522805b..1b46355 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 f7d1e56..b1fffb9 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 ee1b23c..93a40f0 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 4e708ab..337ea43 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 8b89d83..f1e47f3 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 94dfb28..4675878 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 c8ecc4a..e411a72 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 920bdd0..16ca9d5 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.