-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·48 lines (48 loc) · 1.78 KB
/
index.html
File metadata and controls
executable file
·48 lines (48 loc) · 1.78 KB
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
---
layout: default
title: Home
---
<section class="section--first section--frontpage">
<div class="section-title">
<h1 >
{{ site.name }}
</h1>
</div>
</section>
<section class="section--postsWrapper">
<div class="container">
<div class="blockGroup">
<ul class="blockGroup-list">
{% for post in site.posts %}
<li class="block">
<div class="postArticle-wrapper">
<article class="postArticle postArticle--short">
{% if post.image.feature %}
<a href="{{ post.url }}">
{% comment %} Exception for Open Lab Day image to show full resolution {% endcomment %}
{% if post.image.feature == 'openlabdayhack.jpg' %}
{% assign image_path = post.image.feature | prepend: site.baseurl_featured_img %}
{% else %}
{% assign image_path = post.image.feature | prepend: site.baseurl_featured_thumbnail %}
{% endif %}
<div class="postArticle-image" style="background-image:url('{{ image_path }}')">
</div>
</a>
{% else %}
<a href="{{ post.url }}">
<div class="postArticle-image" style="background-image:url('{{site.baseurl}}assets/images/logo-black.svg')">
</div>
</a>
{% endif %}
<a class="postArticle-title" href="{{ post.url }}">{{ post.title }}</a>
</article>
{% if post.categories contains 'events' %}
<div class="block-postMeta">{{ post.date | date_to_string }}</div>
{% endif %}
</div>
</li>
{% endfor %}
</ul>
</div>
</div>
</section>