forked from CloudCannon/bakery-store-jekyll-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfilters.html
128 lines (104 loc) · 3.77 KB
/
filters.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
---
layout: page
title: Home
---
<div class="container">
<table class="filter-table">
<tr>
<th>Filter</th>
<th>Output</th>
</tr>
<tr>
<td><code>{% raw %}{{ "cupcake" | prepend: "chocolate " }}{% endraw %}</code></td>
<td>{{ "cupcake" | prepend: "chocolate " }}</td>
</tr>
<tr>
<td><code>{% raw %}{{ "lemon" | append: " cake" }}{% endraw %}</code></td>
<td>{{ "lemon" | append: " cake" }}</td>
</tr>
<tr>
<td><code>{% raw %}{{ "i like cupcakes" | capitalize }}{% endraw %}</code></td>
<td>{{ "i like cupcakes" | capitalize }}</td>
</tr>
<tr>
<td><code>{% raw %}{{ "BakeryStore" | downcase }}{% endraw %}</code></td>
<td>{{ "BakeryStore" | downcase }}</td>
</tr>
<tr>
<td><code>{% raw %}{{ "apple pie" | upcase }}{% endraw %}</code></td>
<td>{{ "apple pie" | upcase }}</td>
</tr>
<tr>
<td><code>{% raw %}{{ "muffin&cupcake?" | cgi_escape }}{% endraw %}</code></td>
<td>{{ "muffin&cupcake?" | cgi_escape }}</td>
</tr>
<tr>
<td><code>{% raw %}{{ "<h1>Banana Split</h1>" | escape }}{% endraw %}</code></td>
<td>{{ "<h1>Banana Split</h1>" | escape }}</td>
</tr>
<tr>
<td><code>{% raw %}{{ "blueberry muffin.html" | slugify }}{% endraw %}</code></td>
<td>{{ "blueberry muffin.html" | slugify }}</td>
</tr>
<tr>
<td><code>{% raw %}{{ "<h1>Greentea cheesecake</h1>" | strip_html }}{% endraw %}</code></td>
<td>{{ "<h1>Greentea cheesecake</h1>" | strip_html }}</td>
</tr>
<tr>
<td><code>{% raw %}{{ "**Sour dough** bread" | markdownify }}{% endraw %}</code></td>
<td>{{ "**Sour dough** bread" | markdownify }}</td>
</tr>
<tr>
<td><code>{% raw %}{{ "I really really like cupcakes" | remove_first: 'really' }}{% endraw %}</code></td>
<td>{{ "I really really like cupcakes" | remove_first: "really" }}</td>
</tr>
<tr>
<td><code>{% raw %}{{ "I really really like cupcakes" | remove: 'really' }}{% endraw %}</code></td>
<td>{{ "I really really like cupcakes" | remove: "really" }}</td>
</tr>
<tr>
<td><code>{% raw %}{{ "I really really like cupcakes" | replace_first: "really", "truly" }}{% endraw %}</code></td>
<td>{{ "I really really like cupcakes" | replace_first: "really", "truly" }}</td>
</tr>
<tr>
<td><code>{% raw %}{{ "I really really like cupcakes" | replace: "really", "truly" }}{% endraw %}</code></td>
<td>{{ "I really really like cupcakes" | replace: "really", "truly" }}</td>
</tr>
<tr>
<td><code>{% raw %}{{ "Carrot cake" | size }}{% endraw %}</code></td>
<td>{{ "Carrot cake" | size }}</td>
</tr>
<tr>
<td><code>{% raw %}{{ "Peanut butter cheesecake" | number_of_words }}{% endraw %}</code></td>
<td>{{ "Peanut butter cheesecake" | number_of_words }}</td>
</tr>
<tr>
<td><code>{% raw %}{{ "Souffle" | slice: 0 }}{% endraw %}</code></td>
<td>{{ "Souffle" | slice: 0 }}</td>
</tr>
<tr>
<td><code>{% raw %}{{ "Souffle" | slice: 1 }}{% endraw %}</code></td>
<td>{{ "Souffle" | slice: 1 }}</td>
</tr>
<tr>
<td><code>{% raw %}{{ "Souffle" | slice: -2 }}{% endraw %}</code></td>
<td>{{ "Souffle" | slice: -2 }}</td>
</tr>
<tr>
<td><code>{% raw %}{{ "Souffle" | slice: 2,4 }}{% endraw %}</code></td>
<td>{{ "Souffle" | slice: 2,4 }}</td>
</tr>
<tr>
<td><code>{% raw %}{{ "apple,banana,carrot" | split:"," | jsonify }}{% endraw %}</code></td>
<td>{{ "apple,banana,carrot" | split:"," | jsonify }}</td>
</tr>
<tr>
<td><code>{% raw %}{{ "The freshest bread in San Francisco" | truncate: 15 }}{% endraw %}</code></td>
<td>{{ "The freshest bread in San Francisco" | truncate: 15 }}</td>
</tr>
<tr>
<td><code>{% raw %}{{ "Who ate all the cupcakes?" | truncatewords: 3 }}{% endraw %}</code></td>
<td>{{ "Who ate all the cupcakes?" | truncatewords: 3 }}</td>
</tr>
</table>
</div>