-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
53 lines (45 loc) · 1.68 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
---
layout: base
# Feel free to add content and custom Front Matter to this file.
# To modify the layout, see https://jekyllrb.com/docs/themes/#overriding-theme-defaults
---
{% comment %}
Filter and sort out the available posts
{% endcomment %}
{% assign posts = site.posts | sort: 'priority' | reverse %}
{% assign livePosts = site.posts | where: 'status', 'live' %}
{% assign eventLivePosts = livePosts | where_exp: 'post', 'post.event' | slice: 0, 5 %}
{% assign featuredLivePosts = livePosts | where: 'type', 'featured' %}
{% assign regularLivePosts = livePosts | where: 'type', 'regular' %}
<section class="wrapper wrapper-body">
<section class="top-container">
{%- if featuredLivePosts.size > 0 -%}
{% assign featuredLivePost = featuredLivePosts | first %}
{% include post/featured.html post=featuredLivePost %}
{%- endif -%}
<div class="post-event-container ">
<ul class="post-event-list post-card">
{%- for postEvent in eventLivePosts -%}
<li class="post-event-item">
{% include post/event.html post=postEvent %}
{% include components/divider.html %}
</li>
{%- endfor -%}
<li class="post-event-item">
<a class="post-event-item-container" href="">
<h4 class="post-event-header">Want to see your event here? Inform the promotions team!</h4>
</a>
</li>
</ul>
</div>
</section>
{%- if regularLivePosts.size > 0 -%}
<ul class="post-small-item-list-container">
{%- for post in regularLivePosts -%}
<li>
{% include post/small.html post=post %}
</li>
{%- endfor -%}
</ul>
{%- endif -%}
</section>