/
categories.html
224 lines (208 loc) · 6.59 KB
/
categories.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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
---
layout: page
title: Tags
header: Posts By Tag
group: navigation
weight: "CB"
---
{% include JB/setup %}
<div class='tagpage-buttons clear'>
<h2>Filter By:</h2>
</div>
<!-- list of tag filters -->
<div class='tagpage-buttons clear'>
<span id='tagpage_all_button'>All</span>
</div>
<div class='tagpage-buttons clear all-buttons'>
<span id='tagpage-categories-button'>Category</span>
<span id='tagpage-genres-button'>Musical Genre</span>
<span id='tagpage-topics-button'>Topic</span>
<span id='tagpage-artists-button'>Artist</span>
<span id='tagpage-sources-button'>Source</span>
</div>
<!-- list of tags -->
<div class='allindextags'>
<!-- list of tags by category -->
<div class="index clear" id='tagpage-categories-list'>
<span class='catheader'>category</span>
<ul class="tag_box inline">
{% assign categories_list = (site.categories | sort ) %}
{% include JB/categories_list %}
</ul>
</div>
<!-- list of tags by genre -->
<div class="index clear" id='tagpage-genres-list'>
<span class='catheader'>genre</span>
<ul class="tag_box inline">
{% assign genreArray = site.genrearray %}
{% for post in site.posts %}
{% for tag in post.genre %}
{% assign tag = tag | replace: ' ', '' %}
{% unless genreArray contains tag %}
{% assign genreArray = genreArray | push: tag %}
{% endunless %}
{% endfor %}
{% endfor %}
{% for post in site.reviews %}
{% for genre in post.genre %}
{% assign tag = genre %}
{% unless genreArray contains tag %}
{% assign genreArray = genreArray | push: tag %}
{% endunless %}
{% endfor %}
{% endfor %}
{% assign sortedGenres = (genreArray | sort )%}
{% for tag in sortedGenres %}
<li><a href="{{ BASE_PATH }}#{{tag}}-ref">{{tag}}</a>
</li>
{% endfor %}
</ul>
</div>
<!-- list of tags by topic -->
<div class="index clear" id='tagpage-topics-list'>
<span class='catheader'>topic</span>
<ul class="tag_box inline">
{% assign topicArray = site.topicarray %}
{% for post in site.posts %}
{% if (post.topic | size) > 0 %}
{% for tag in post.topic %}
{% unless topicArray contains tag %}
{% assign tag = tag | replace: ' ', '' %}
{% assign topicArray = topicArray | push: tag %}
{% endunless %}
{% endfor %}
{% endif %}
{% endfor %}
{% assign sortedTopics = (topicArray | sort )%}
{% for tag in sortedTopics %}
<li>
<a href="{{ BASE_PATH }}#{{tag}}-ref">{{tag}}</a>
</li>
{% endfor %}
</ul>
</div>
<!-- list of tags by artist -->
<div class="index clear" id='tagpage-artists-list'>
<span class='catheader'>artist</span>
<ul class="tag_box inline">
{% assign artistArray = site.locationarray %}
{% for post in site.posts %}
{% for tag in post.artist %}
{% assign tag = tag | replace: ' ', '' %}
{% unless artistArray contains tag %}
{% assign artistArray = artistArray | push: tag %}
{% endunless %}
{% endfor %}
{% endfor %}
{% for post in site.reviews %}
{% assign tag = post.artist %}
{% unless artistArray contains tag %}
{% assign artistArray = artistArray | push: tag %}
{% endunless %}
{% endfor %}
{% assign sortedArtists = (artistArray | sort) %}
{% for tag in sortedArtists %}
<li>
<a href="{{ BASE_PATH }}#{{ tag }}-ref">{{tag}} </a>
</li>
{% endfor %}
</ul>
</div>
<!-- <!-- <!-- list of tags by source -->
<div class="index clear" id='tagpage-sources-list'>
<span class='catheader'>source</span>
<ul class="tag_box source_box inline">
{% assign source_list = (site.posts | sort:"source" | group_by:"source" ) %}
{% for source in source_list %}
{% if (source.items[0].source | size ) > 0 %}
<li><a href="{{ BASE_PATH }}#{{ source.items[0].source | replace: " ",'' }}-ref">
{{ source.items[0].source }} </a>
</li>
{% endif %}
{% endfor %}
</ul>
</div>
</div>
<!-- <a href="{{ BASE_PATH }}#{{ location }}-ref">{{location}} </a>
<!-- headings and links to article by category -->
<div class='allindexstories'>
<div id='tagpage-categories'>
<h1 class='tagpageh1'>Category</h1>
{% assign sorted_categories_list = (site.categories | sort ) %}
{% for category in sorted_categories_list %}
<h2 id="{{ category[0] }}-ref">{{ category[0] | join: "/" }}</h2>
<ul class='icon'>
{% assign pages_list = (category[1] | sort: 'title') %}
{% include JB/pages_list %}
{% if category[0] == "reviews" %}
{% assign allreviews = (site.reviews | sort: "artist") %}
{% for review in allreviews %}
<li class="lplink iconic"><a href="{{review.url}}">{{review.title}}</a></li>
{% endfor %}
{% endif %}
</ul>
{% endfor %}
<hr>
</div>
<!-- headings and links to article by genre -->
<div id='tagpage-genres'>
<h1 class='tagpageh1'>Music Genre</h1>
{% for genre in sortedGenres %}
<h2 id="{{genre}}-ref">{{genre}}</h2>
<ul class='icon'>
{% assign pages_list = site.tags[genre] %}
{% include JB/pages_list %}
{% for review in site.reviews %}
{% if review.genre contains genre %}
<li class="lplink iconic"><a href="{{review.url}}">{{review.title}}</a></li>
{% endif %}
{% endfor %}
</ul>
{% endfor %}
<hr>
</div>
<!-- headings and links to article by topic -->
<div id='tagpage-topics'>
<h1 class='tagpageh1'>Topic</h1>
{% for item in sortedTopics %}
<h2 id="{{item}}-ref">{{item}}</h2>
<ul class='icon'>
{% assign pages_list = site.tags[item] %}
{% include JB/pages_list %}
</ul>
{% endfor %}
<hr>
</div>
<!-- -->
<!-- -->
<!-- headings and links to article by artist -->
<div id='tagpage-artists'>
<h1 class='tagpageh1'>Artist</h1>
{% for artist in sortedArtists %}
<h2 id="{{artist}}-ref">{{artist}}</h2>
<ul class='icon'>
{% assign pages_list = site.tags[artist] %}
{% include JB/pages_list %}
{% for review in site.reviews %}
{% if review.artist == artist %}
<li class="lplink iconic"><a href="{{review.url}}">{{review.title}}</a></li>
{% endif %}
{% endfor %}
</ul>
{% endfor %}
<hr>
</div>
<!-- headings and links to article by source -->
<div id='tagpage-sources'>
<h1 class='tagpageh1'>Source</h1>
{% for source in source_list %}
{% if (source.items[0].source | size ) > 0 %}
<h2 id="{{ source.items[0].source | replace: " ",''}}-ref">{{ source.items[0].source | join: "/" }}</h2>
<ul class='icon'>
{% assign pages_list = source.items %}
{% include JB/pages_list %}
</ul>
{% endif %}
{% endfor %}
</div>
</div>