mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-20 03:10:39 -07:00
Updating CSS for sidebar
This commit is contained in:
@@ -61,8 +61,9 @@
|
|||||||
<ul class="section__links">
|
<ul class="section__links">
|
||||||
{% for doc in site.docs %}
|
{% for doc in site.docs %}
|
||||||
{% if doc.type == "filters" %}
|
{% if doc.type == "filters" %}
|
||||||
|
{% capture doc_url %}/docs/{{ doc.type }}/{{ doc.title | slugify }}/{% endcapture %}
|
||||||
<li>
|
<li>
|
||||||
<a href="/docs/{{ doc.type }}/{{ doc.title | slugify }}" class="section__link">{{ doc.title }}</a>
|
<a href="{{ doc_url }}" class="section__link {% if doc_url == page.url %}section__link--is-active{% endif %}">{{ doc.title }}</a>
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|||||||
Reference in New Issue
Block a user