diff --git a/doc_conditional_logic.md b/doc_conditional_logic.md index 8cd7658..18ca36a 100644 --- a/doc_conditional_logic.md +++ b/doc_conditional_logic.md @@ -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`: -``` +```liquid {% raw %} {% if site.audience contains "vegan" or site.audience == "vegetarian" %} // 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: -``` +```liquid {% raw %} {% if site.audience contains "vegan" or "vegetarian" %} // 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: -``` +```liquid {% raw %} {% if site.data.options.output == "alpha" %} show this content... diff --git a/prince-file-list.txt b/prince-file-list.txt index 7c3528c..996d12b 100644 --- a/prince-file-list.txt +++ b/prince-file-list.txt @@ -14,7 +14,7 @@ search: exclude {% if thirdlevel.audience %} {% 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 %} - {{site.url}}{{site.baseurl}}{{item.url}} + {{site.url}}{{site.baseurl}}{{deeplevel.url}} {% endif %} {% endfor %} {% endif %}