diff --git a/_basics/introduction.md b/_basics/introduction.md index 285363dc..8e080a4d 100644 --- a/_basics/introduction.md +++ b/_basics/introduction.md @@ -46,9 +46,9 @@ Hello Adam! Tags can be categorized into three types: -- [Control flow]({{ "/tags/control-flow" | prepend: site.baseurl }}) -- [Iteration]({{ "/tags/iteration" | prepend: site.baseurl }}) -- [Variable assignments]({{ "/tags/variable" | prepend: site.baseurl }}) +- [Control flow]({{ "/tags/control-flow/" | prepend: site.baseurl }}) +- [Iteration]({{ "/tags/iteration/" | prepend: site.baseurl }}) +- [Variable assignments]({{ "/tags/variable/" | prepend: site.baseurl }}) You can read more about each type of tag in their respective sections. diff --git a/_basics/types.md b/_basics/types.md index 907caa38..d7c6c7bf 100644 --- a/_basics/types.md +++ b/_basics/types.md @@ -49,7 +49,7 @@ Booleans are either `true` or `false`. No quotations are necessary when declarin Nil is a special empty value that is returned when Liquid code has no results. It is **not** a string with the characters "nil". -Nil is [treated as false]({{ "/basics/truthy-and-falsy" | prepend: site.baseurl }}) in the conditions of `if` blocks and other Liquid tags that check the truthfulness of a statement. +Nil is [treated as false]({{ "/basics/truthy-and-falsy/#falsy" | prepend: site.baseurl }}) in the conditions of `if` blocks and other Liquid tags that check the truthfulness of a statement. In the following example, if the user does not exist (that is, `user` returns `nil`), Liquid will not print the greeting: @@ -81,7 +81,7 @@ Arrays hold lists of variables of any type. ### Accessing items in arrays -To access all the items in an array, you can loop through each item in the array using an [iteration tag]({{ "/tags/iteration" | prepend: site.baseurl }}). +To access all the items in an array, you can loop through each item in the array using an [iteration tag]({{ "/tags/iteration/" | prepend: site.baseurl }}).

Input

```liquid @@ -123,4 +123,4 @@ Adam You cannot initialize arrays using only Liquid. -You can, however, use the [split]({{ "/filters/split" | prepend: site.baseurl }}) filter to break a string into an array of substrings. +You can, however, use the [split]({{ "/filters/split/" | prepend: site.baseurl }}) filter to break a string into an array of substrings. diff --git a/_basics/variations.md b/_basics/variations.md index fa617ed3..5aa21599 100644 --- a/_basics/variations.md +++ b/_basics/variations.md @@ -21,4 +21,4 @@ Jekyll also powers [GitHub Pages](https://pages.github.com/), a web hosting serv Jekyll might not be using the latest version of Liquid. This means that the tags and filters listed on this site may not work in Jekyll. Often the Jekyll project will wait for a stable release of Liquid rather than using a beta or release candidate version. To see what version of Liquid Jekyll is using, check the **runtime dependencies** section of [Jekyll's gem page](https://rubygems.org/gems/jekyll). -Jekyll's version of Liquid is documented in the [Templates section of Jekyll's documentation](http://jekyllrb.com/docs/templates/). If you want to try out Jekyll's version of Liquid, you can clone the Jekyll project or install Jekyll as a gem and test Liquid on a static site. +Jekyll's version of Liquid is documented in the [Liquid section of Jekyll's documentation](https://jekyllrb.com/docs/liquid/). If you want to try out Jekyll's version of Liquid, you can clone the Jekyll project or install Jekyll as a gem and test Liquid on a static site. diff --git a/_filters/divided_by.md b/_filters/divided_by.md index 07842f22..fa43cb6f 100644 --- a/_filters/divided_by.md +++ b/_filters/divided_by.md @@ -5,7 +5,7 @@ description: Liquid filter that divides a number by another number. Divides a number by the specified number. -The result is rounded down to the nearest integer (that is, the [floor]({{ site.baseurl }}/filters/floor)) if the divisor is an integer. +The result is rounded down to the nearest integer (that is, the [floor]({{ "/filters/floor/" | prepend: site.baseurl }})) if the divisor is an integer.

Input

```liquid @@ -83,7 +83,7 @@ In this example, we're dividing by a variable that contains an integer, so we ge {{ 20 | divided_by: my_integer }} ``` -Here, we [multiply]({{ site.baseurl}}/filters/times) the variable by `1.0` to get a float, then divide by the float instead: +Here, we [multiply]({{ "/filters/times/" | prepend: site.baseurl }}) the variable by `1.0` to get a float, then divide by the float instead:

Input

```liquid diff --git a/_filters/url_decode.md b/_filters/url_decode.md index 6cf90872..bf240c19 100644 --- a/_filters/url_decode.md +++ b/_filters/url_decode.md @@ -3,7 +3,7 @@ title: url_decode description: Liquid filter that decodes percent-encoded characters in a string. --- -Decodes a string that has been encoded as a URL or by [`url_encode`]({{ '/filters/url_encode' | prepend: site.baseurl }}). +Decodes a string that has been encoded as a URL or by [url_encode]({{ "/filters/url_encode/" | prepend: site.baseurl }}).

Input

```liquid diff --git a/_filters/where.md b/_filters/where.md index e036d42b..70f797f0 100644 --- a/_filters/where.md +++ b/_filters/where.md @@ -3,7 +3,7 @@ title: where description: Liquid filter that selects from arrays. --- -Creates an array including only the objects with a given property value, or any [truthy]({{ "/basics/truthy-and-falsy#truthy" | prepend: site.baseurl }}) value by default. +Creates an array including only the objects with a given property value, or any [truthy]({{ "/basics/truthy-and-falsy/#truthy" | prepend: site.baseurl }}) value by default. In this example, assume you have a list of products and you want to show your kitchen products separately. Using `where`, you can create an array containing only the products that have a `"type"` of `"kitchen"`. @@ -37,7 +37,7 @@ Kitchen products: - Garlic press ``` -Say instead you have a list of products and you only want to show those that are available to buy. You can `where` with a property name but no target value to include all products with a [truthy]({{ "/basics/truthy-and-falsy#truthy" | prepend: site.baseurl }}) `"available"` value. +Say instead you have a list of products and you only want to show those that are available to buy. You can `where` with a property name but no target value to include all products with a [truthy]({{ "/basics/truthy-and-falsy/#truthy" | prepend: site.baseurl }}) `"available"` value.

Input

```liquid diff --git a/_tags/iteration.md b/_tags/iteration.md index 6cb7a4a4..97a0b2b2 100644 --- a/_tags/iteration.md +++ b/_tags/iteration.md @@ -7,7 +7,7 @@ Iteration tags run blocks of code repeatedly. ## for -Repeatedly executes a block of code. For a full list of attributes available within a `for` loop, see [forloop (object)](https://docs.shopify.com/themes/liquid/objects/for-loops). +Repeatedly executes a block of code. For a full list of attributes available within a `for` loop, see [forloop (object)](https://help.shopify.com/themes/liquid/objects/for-loops).

Input

```liquid