Skip to content

Commit 3ae53e1

Browse files
authored
Update README.md
1 parent 6b567f3 commit 3ae53e1

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

README.md

+13-8
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ So much thanks to [@edalzell](https://github.com/edalzell)!
1515
In your template, use the filter like this:
1616

1717
```
18-
{{ collection:collection_slug filter="TaxonomyFilter" tf_group="{ taxonomy_group_slug }" tf_slug="{ taxonomy_item_slug }" }}
18+
{{ collection:collection_slug
19+
filter="TaxonomyFilter"
20+
tf_group="{ taxonomy_group_slug }"
21+
tf_slug="{ taxonomy_item_slug }"
22+
}}
1923
```
2024

2125
If `tf_slug` is not provided, it defaults to the value of `{{ last_segment }}`.
@@ -40,13 +44,14 @@ In my use case, I'm trying to filter based on the URI `/events/categories/summer
4044
### Template
4145

4246
```
43-
{{ collection:events filter="TaxonomyFilter"
44-
tf_group="events-categories"
45-
tf_slug="{ slug }"
46-
sort="date:asc"
47-
show_future="yes"
48-
show_past="no"
49-
as="events"
47+
{{ collection:events
48+
filter="TaxonomyFilter"
49+
tf_group="events-categories"
50+
tf_slug="{ slug }"
51+
sort="date:asc"
52+
show_future="yes"
53+
show_past="no"
54+
as="events"
5055
}}
5156
{{ unless no_results }}
5257
<h2>

0 commit comments

Comments
 (0)