-
Notifications
You must be signed in to change notification settings - Fork 0
/
backup.html
84 lines (42 loc) · 1.23 KB
/
backup.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
<div>
<div style="display:none;">
<h1>Should not</h1>
{% if filter_tag %}
{% capture final_collection %}
{% for post in collection %}
{% if post.tags contains filter_tag %}
{{ forloop.index0 }}
{% endif %}
{% endfor %}
{% endcapture %}
{% endif %}
</div>
<h1>Final Collection</h1>
{% for item in final_collection %}
{{ item }}
{% endfor %}
{{ final_collection | size }}
{% assign total_size = final_collection | size %}
{{ total_size }}
{% assign list_1_size = total_size | divided_by:2 %}
{% assign list_2_size = total_size | minus:list_1_size %}
</div>
<h1>Tester</h1>
{% for i in collection %}
<h2> Collection {{ i }} </h2>
{{ collection[i] }}
{% endfor %}
<div class="clear"></div>
<div class="post-list-1">
{% for post in collection limit:list_1_size %}
{% assign loopcounter = forloop.index %}
{% include post-box.html %}
{% endfor %}
</div>
<div class="post-list-2">
{% for post in collection offset:list_1_size %}
{% assign loopcounter = forloop.index %}
{% include post-box.html %}
{% endfor %}
</div>
{% assign posts = (site.categories.work | where_matches:"tags", "illustration") %}