mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-16 09:20:42 -07:00
Don't bold every sidebar link on the index page
Fixing a bunch of broken links in Tags/Basics
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
|
||||
<ul class="section__links">
|
||||
{% for item in site.pages %}{% if item.url contains section/ %}{% unless item.path contains "index" %}
|
||||
<li><a href="{{ item.url | prepend: site.baseurl }}" class="section__link{% if item.url contains page.url %} section__link--is-active {% endif %}">{{ item.title }}</a></li>
|
||||
<li><a href="{{ item.url | prepend: site.baseurl }}" class="section__link{% if item.url contains page.url and page.url != "/" %} section__link--is-active {% endif %}">{{ item.title }}</a></li>
|
||||
{% endunless %}{% endif %}{% endfor %}
|
||||
</ul>
|
||||
{% endfor %}
|
||||
|
||||
@@ -180,13 +180,6 @@ table {
|
||||
}
|
||||
}
|
||||
|
||||
td {
|
||||
code {
|
||||
border: none;
|
||||
background: none;
|
||||
}
|
||||
}
|
||||
|
||||
p {
|
||||
line-height: 1.8;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
$sidebar-width: 225px;
|
||||
$sidebar-width: 250px;
|
||||
$logo-height: 130px;
|
||||
$wrapper-width: 800px;
|
||||
|
||||
|
||||
+10
-10
@@ -9,35 +9,35 @@ Liquid includes many logical and comparison operators.
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><pre>==</pre></td>
|
||||
<td><code>==</code></td>
|
||||
<td>equals</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><pre>!=</pre></td>
|
||||
<td><code>!=</code></td>
|
||||
<td>does not equal</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><pre>></pre></td>
|
||||
<td><code>></code></td>
|
||||
<td>greater than</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><pre><</pre></td>
|
||||
<td><code><</code></td>
|
||||
<td>less than</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><pre>>=</pre></td>
|
||||
<td><code>>=</code></td>
|
||||
<td>greater than or equal to</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><pre><=</pre></td>
|
||||
<td><code><=</code></td>
|
||||
<td>less than or equal to</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><pre>or</pre></td>
|
||||
<td><code>or</code></td>
|
||||
<td>logical or</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><pre>and</pre></td>
|
||||
<td><code>and</code></td>
|
||||
<td>logical and</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@@ -65,7 +65,7 @@ You can use multiple operators in a tag:
|
||||
|
||||
## contains
|
||||
|
||||
`contains` checks for the presence of a substring inside a string.
|
||||
`contains` checks for the codesence of a substring inside a string.
|
||||
|
||||
```liquid
|
||||
{% raw %}
|
||||
@@ -75,7 +75,7 @@ You can use multiple operators in a tag:
|
||||
{% endraw %}
|
||||
```
|
||||
|
||||
`contains` can also check for the presence of a string in an array of strings.
|
||||
`contains` can also check for the codesence of a string in an array of strings.
|
||||
|
||||
```liquid
|
||||
{% raw %}
|
||||
|
||||
+3
-3
@@ -79,7 +79,7 @@ Arrays hold lists of variables of any type.
|
||||
|
||||
### Accessing items in arrays
|
||||
|
||||
To access all of the items in an array, you can loop through each item in the array using a [for](/tags/#for) or [tablerow](/tags/#tablerow) tag.
|
||||
To access all of the items in an array, you can loop through each item in the array using an [iteration tag](/tags/iteration/).
|
||||
|
||||
```liquid
|
||||
{% raw %}
|
||||
@@ -119,11 +119,11 @@ Adam
|
||||
|
||||
You cannot initialize arrays using pure Liquid.
|
||||
|
||||
You can, however, use the [split](/filters/#split) filter to break a single string into an array of substrings.
|
||||
You can, however, use the [split](/filters/split) filter to break a single string into an array of substrings.
|
||||
|
||||
## EmptyDrop
|
||||
|
||||
An EmptyDrop object is returned if you try to access a deleted object (such as a page or post) by its [handle](/basics/#Handles). In the example below, `page_1`, `page_2` and `page_3` are all EmptyDrop objects.
|
||||
An EmptyDrop object is returned if you try to access a deleted object (such as a page or post) by its handle. In the example below, `page_1`, `page_2` and `page_3` are all EmptyDrop objects.
|
||||
|
||||
```liquid
|
||||
{% raw %}
|
||||
|
||||
+8
-8
@@ -62,9 +62,9 @@ Causes the loop to skip the current iteration when it encounters the `continue`
|
||||
1 2 3 5
|
||||
```
|
||||
|
||||
### for parameters
|
||||
## for (parameters)
|
||||
|
||||
#### limit
|
||||
### limit
|
||||
|
||||
Exits the for loop at a specific index.
|
||||
|
||||
@@ -81,7 +81,7 @@ Exits the for loop at a specific index.
|
||||
1 2
|
||||
```
|
||||
|
||||
#### offset
|
||||
### offset
|
||||
|
||||
Starts the for loop at a specific index.
|
||||
|
||||
@@ -98,7 +98,7 @@ Starts the for loop at a specific index.
|
||||
3 4 5 6
|
||||
```
|
||||
|
||||
#### range
|
||||
### range
|
||||
|
||||
Defines a range of numbers to loop through. The range can be defined by both literal and variable numbers.
|
||||
|
||||
@@ -120,7 +120,7 @@ Defines a range of numbers to loop through. The range can be defined by both lit
|
||||
3 4 5
|
||||
```
|
||||
|
||||
#### reversed
|
||||
### reversed
|
||||
|
||||
Reverses the order of the for loop.
|
||||
|
||||
@@ -164,11 +164,11 @@ Uses for `cycle` include:
|
||||
- applying odd/even classes to rows in a table
|
||||
- applying a unique class to the last product thumbnail in a row
|
||||
|
||||
### cycle parameters
|
||||
## cycle (parameters)
|
||||
|
||||
`cycle` accepts a parameter called `cycle group` in cases where you need multiple `cycle` blocks in one template. If no name is supplied for the cycle group, then it is assumed that multiple calls with the same parameters are one group.
|
||||
|
||||
### tablerow
|
||||
## tablerow
|
||||
|
||||
Generates an HTML table. Must be wrapped in opening `<table>` and closing `</table>` HTML tags.
|
||||
|
||||
@@ -207,7 +207,7 @@ Generates an HTML table. Must be wrapped in opening `<table>` and closing `</tab
|
||||
</table>
|
||||
```
|
||||
|
||||
### tablerow parameters
|
||||
## tablerow (parameters)
|
||||
|
||||
#### cols
|
||||
|
||||
|
||||
Reference in New Issue
Block a user