-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
executable file
·39 lines (32 loc) · 2.6 KB
/
index.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
---
layout: default
title: home
permalink: /
---
<!-- BLOG -->
{% if site.data.settings.announcements > 0 %}
<section class="blog">
{% comment %}{% include topbar.html name="News from rave-up records" description="coming soon" class="blog" %}{% endcomment %}
{% assign sorted_blog = site.blog | sort: 'date' | reverse %}
{% for blog in sorted_blog limit: site.data.settings.announcements %}
{% include blog.html %}
{% endfor %}
</section>
{% endif %}
<!-- FOCUS - Header in post -->
{% assign fst = false %}{% for post in site.posts %}{% if post.focus %}{% if fst == false %}{% assign fst1 = true %}<section class="focus">
{% include topbar.html name=post.focus.name description=post.focus.description %}{% endif %}{% include item.html %}{% endif %}{% endfor %}{% if fst %}</section>{% endif %}
<!-- NEWS -->
<!-- <section class="news"> -->
{% comment %}{% include topbar.html name=outslogan %}{% endcomment %}
{% assign sct = false %}{% for labels in site.data.labels %}{% assign cat = labels.code %}{% assign rev = site.categories[cat] | sort: 'volume' %}{% assign fst = false %}{% for post in rev %}{% if post.tags contains 'new' and post.focus == null %}{% if fst == false %}{% if sct == false %}<section class="news">{% assign sct = true %}{% endif %}
{% if post.outdate != null %}{% assign out = post.outdate %}{% else %}{% assign out = site.data.settings.outdate %}{% endif %}
{% include topbar.html name=labels.name description=out class=labels.code cap='New Release!'%}{% assign fst = true %}{% endif %}{% include item.html %}{% endif %}{% endfor %}{% endfor %}{% if sct %}</section>{% endif %}
<!-- FEW LEFT -->
<section class="few">
{% assign fst = false %}{% for labels in site.data.labels %}{% assign cat = labels.code %}{% assign rev = site.categories[cat] | sort: 'volume' %}{% for post in rev reversed %}{% if post.tags contains 'few' %}{% if fst == false %}{% include topbar.html name='still in stock' description='really few copies left!' class='blog' %}{% assign fst = true %}{% endif %}{% include item.html %}{% endif %}{% endfor %}{% endfor %}
</section>
<!-- STOCK - Header below -->
<section class="stock">
{% comment %}{% include topbar.html name="still in stock" %}{% endcomment %}{% for labels in site.data.labels %}{% assign cat = labels.code %}{% assign rev = site.categories[cat] | sort: 'volume' %}{% assign fst = false %}{% for post in rev reversed %}{% if post.tags.size == 0 %}{% if fst == false %}{% include topbar.html name=labels.name description=labels.description class=labels.code cap='In Stock' %}{% assign fst = true %}{% endif %}{% include item.html %}{% endif %}{% endfor %}{% endfor %}
</section>