mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-19 19:00:39 -07:00
Put all the filters on one page
This commit is contained in:
+1
-9
@@ -3,12 +3,4 @@ baseurl: "" # the subpath of your site, e.g. /blog/
|
|||||||
url: "http://liquidmarkup.org" # the base hostname & protocol for your site
|
url: "http://liquidmarkup.org" # the base hostname & protocol for your site
|
||||||
markdown: kramdown
|
markdown: kramdown
|
||||||
collections:
|
collections:
|
||||||
filters:
|
- filters
|
||||||
output: true
|
|
||||||
|
|
||||||
defaults:
|
|
||||||
-
|
|
||||||
scope:
|
|
||||||
type: filters
|
|
||||||
values:
|
|
||||||
layout: page
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
<li>{{ collection[0] | capitalize }}
|
<li>{{ collection[0] | capitalize }}
|
||||||
<ul>
|
<ul>
|
||||||
{% for doc in collection[1].docs %}
|
{% for doc in collection[1].docs %}
|
||||||
<li><a href="{{ doc.url | prepend: site.baseurl }}">{{ doc.title }}</a></li>
|
<li><a href="{{ "/filters/" | append: "#" | append: doc.title | prepend: site.baseurl }}">{{ doc.title }}</a></li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
+12
@@ -0,0 +1,12 @@
|
|||||||
|
---
|
||||||
|
title: Filters
|
||||||
|
permalink: /filters/
|
||||||
|
layout: page
|
||||||
|
---
|
||||||
|
|
||||||
|
{% for doc in site.filters %}
|
||||||
|
<h3 class="component-link" id="{{ doc.title }}">{{ doc.title }}</h3>
|
||||||
|
<p>
|
||||||
|
{{ doc.output }}
|
||||||
|
</p>
|
||||||
|
{% endfor %}
|
||||||
Reference in New Issue
Block a user