had error in prince-file-list file in getting third level
This commit is contained in:
@ -80,7 +80,7 @@ You can use more advanced Liquid markup for conditional logic, such as an `or` c
|
|||||||
|
|
||||||
For example, here's an example using `or`:
|
For example, here's an example using `or`:
|
||||||
|
|
||||||
```
|
```liquid
|
||||||
{% raw %}
|
{% raw %}
|
||||||
{% if site.audience contains "vegan" or site.audience == "vegetarian" %}
|
{% if site.audience contains "vegan" or site.audience == "vegetarian" %}
|
||||||
// run this.
|
// run this.
|
||||||
@ -90,7 +90,7 @@ For example, here's an example using `or`:
|
|||||||
|
|
||||||
Note that you have to specify the full condition each time. You can't shorten the above logic to the following:
|
Note that you have to specify the full condition each time. You can't shorten the above logic to the following:
|
||||||
|
|
||||||
```
|
```liquid
|
||||||
{% raw %}
|
{% raw %}
|
||||||
{% if site.audience contains "vegan" or "vegetarian" %}
|
{% if site.audience contains "vegan" or "vegetarian" %}
|
||||||
// run this.
|
// run this.
|
||||||
@ -122,7 +122,7 @@ In this situation, if `site.print == true`, then the code will *not* be run here
|
|||||||
|
|
||||||
Here's an example of using conditional logic based on a value in a data file:
|
Here's an example of using conditional logic based on a value in a data file:
|
||||||
|
|
||||||
```
|
```liquid
|
||||||
{% raw %}
|
{% raw %}
|
||||||
{% if site.data.options.output == "alpha" %}
|
{% if site.data.options.output == "alpha" %}
|
||||||
show this content...
|
show this content...
|
||||||
|
@ -14,7 +14,7 @@ search: exclude
|
|||||||
{% if thirdlevel.audience %}
|
{% if thirdlevel.audience %}
|
||||||
{% for deeplevel in thirdlevel.thirdlevelitems %}
|
{% for deeplevel in thirdlevel.thirdlevelitems %}
|
||||||
{% if deeplevel.audience contains audience and deeplevel.product contains product and deeplevel.platform contains platform and deeplevel.version contains version %}
|
{% if deeplevel.audience contains audience and deeplevel.product contains product and deeplevel.platform contains platform and deeplevel.version contains version %}
|
||||||
{{site.url}}{{site.baseurl}}{{item.url}}
|
{{site.url}}{{site.baseurl}}{{deeplevel.url}}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Reference in New Issue
Block a user