diff --git a/filters/default.md b/filters/default.md index a92055f8..d948bea0 100644 --- a/filters/default.md +++ b/filters/default.md @@ -2,7 +2,7 @@ title: default --- -`default` offers a means of having a fallback in case your value doesn't exist. `default` will use its substitute if the left side is `nil`, `false`, or empty. +`default` lets you specify a fallback in case a value doesn't exist. `default` will show its value if the left side is `nil`, `false`, or empty. In this example, `product_price` is not defined, so the default value is used. diff --git a/index.md b/index.md index ad6266b8..fc2bfc84 100644 --- a/index.md +++ b/index.md @@ -22,9 +22,15 @@ Objects and variable names are denoted by double curly braces: `{% raw %}{{{% en For example, you can show basic content like a page title using a Liquid object: -| Liquid | Output | -|:----------------------------------------|:---------| -| {% raw %}`{{ page.title }}`{% endraw %} | Overview | +```liquid +{% raw %} +{{ page.title }} +{% endraw %} +``` + +```text +Overview +``` In this case, Liquid is rendering the content of an object called `page.title`, and that object contains the text `Overview`. @@ -40,27 +46,20 @@ Tag markup does not resolve to text. This means that you can assign variables an #### Conditionals -For example, you can change what information Liquid shows using conditionals: +Conditionals can change the information Liquid shows using programming logic: -
Liquid
-Output
-Liquid
-Output
-