-
Notifications
You must be signed in to change notification settings - Fork 5
/
_archive-old.html
175 lines (145 loc) · 8.34 KB
/
_archive-old.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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
---
layout: default
title: archive
img-archive: archive-back
img-tag: oatmeal-back
img-workout-gear:
- archive-workout-pullup-back
- archive-workout-nothing-back
- archive-workout-ledge-back
img-size:
default: -default.jpg
large: -large.jpg
---
<div class="wrap" data-interchange="{% for size in page.img-size %}[{{site.baseurl}}/img/{{page.img-archive}}{{size[1]}} ({{size[0]}})]{% unless forloop.last %}, {% endunless %}{% endfor %}">
<div class="diagonal-stripes">
<div class="row main">
<!-- ACCORDION AND TAB MENU -->
<div class="row">
<div class="small-12 columns">
<ul class="small-block-grid-1 medium-block-grid-2">
<li>
<dl class="accordion" data-accordion="AccordionGroup">
<dd class="accordion-navigation ">
<a href="#panelrecipe">RECIPE</a>
<div id="panelrecipe" class="content ">
<dl class="tabs" data-tab>
<dd class="medium-6 columns "><a href="#paneltag">BY TAG</a></dd>
<dd class="medium-6 columns"><a href="#paneldate">BY DATE</a></dd>
</dl>
</div>
</dd>
</dl>
</li>
<li>
<dl class="accordion" data-accordion="AccordionGroup">
<dd class="accordion-navigation">
<a href="#panelworkout">WORKOUT</a>
<div id="panelworkout" class="content">
<dl class="tabs" data-tab>
<dd class="medium-6 columns"><a href="#panelgear">BY GEAR</a></dd>
<dd class="medium-6 columns"><a href="#paneltype">BY TYPE</a></dd>
</dl>
</div>
</dd>
</dl>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<!-- TAB CONTENT -->
<div class="tabs-content">
<div class="content main active" id="panelstart">
<h1><i class="fa fa-filter fa-lg"></i></h1>
<h1>CHOOSE A FILTER METHOD</h1>
</div>
<div class="content " id="paneltag">
<!-- RECIPES ORDERED BY TAG -->
{% assign sortedTags = site.tags | sort %}
{% for tag in sortedTags %}
<div class="main">
{% assign postTitle = tag[1] | where: "category", "recipe" | sort %}
{% if postTitle != empty %}
<!--
<div class="wrap" data-interchange="{% for size in page.img-size %}[{{site.baseurl}}/asset/img/{{page.img-tag}}{{size[1]}} ({{size[0]}})]{% unless forloop.last %}, {% endunless %}{% endfor %}">
<h2>{{ tag[0] }}</h2>
</div>
-->
<h2>{{ tag[0] }}</h2>
<ul>
{% for p in postTitle %}
<li><a href="{{ site.baseurl }}{{ p.url }}">{{ p.title }}</a></li>
{% endfor %}
</ul>
{% endif %}
</div>
{% endfor %}
</div>
<div class="content" id="paneldate">
<!-- RECIPES ORDERED BY DATE -->
<ul class="main">
{% for post in site.posts %}
{% capture currentyear %}{{post.date | date: "%B %Y"}}{% endcapture %}
{% if currentyear != year %}
{% unless forloop.first %}{% endunless %}
<h2>{{ currentyear }}</h2>
{% capture year %}{{currentyear}}{% endcapture %}
{% endif %}
{% if post.category == 'recipe' %}
<li><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></li>
{% endif %}
{% endfor %}
</ul>
</div>
<div class="content" id="panelgear">
<!-- WORKOUTS ORDERED BY GEAR
{% assign sortedTags = site.tags | sort %}
{% for tag in sortedTags %}
<div class="main">
{% assign postTitle = tag[1] | where: "category", "workout" | sort %}
{% if postTitle != empty %}
<div class="wrap sub" data-interchange="{% for size in page.img-size %}[{{site.baseurl}}/img/archive-workout-{{ tag[0] }}-back{{size[1]}} ({{size[0]}})]{% unless forloop.last %}, {% endunless %}{% endfor %}">
<h2>{{ tag[0] }}</h2>
</div>
<ul class="main gear">
{% for p in postTitle %}
<li><a href="{{ site.baseurl }}{{ p.url }}">{{ p.title }}</a></li>
{% endfor %}
</ul>
{% endif %}
</div>
{% endfor %}
-->
<div class="main">
{% for entry in site.data.gear %}
{% assign gear-site = entry %}
<h2>{{ gear-site }}</h2>
{% endfor %}
<ul>
{% for post in site.posts %}
{% if post.gear == gear-site %}
<li><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></li>
{% endif %}
{% endfor %}
</ul>
</div>
</div>
<div class="content" id="paneltype">
<div class="main">
{% for type in site.data.types %}
<h2>{{ type }}</h2>
{% assign type-site = type %}
<ul>
{% for post in site.posts %}
{% if post.type == type-site %}
<li><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></li>
{% endif %}
{% endfor %}
</ul>
{% endfor %}
</div>
</div>
</div>