-
Notifications
You must be signed in to change notification settings - Fork 21
/
index.html
56 lines (51 loc) · 1.64 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
54
55
56
---
layout: default
stylesheets:
- /css/front.css
---
<div class="home">
<ul class="post-list">
{% for post in site.posts %}
{% if post.displayed %}
{% case forloop.index %}
{% when 1 %}
{% assign className = "post-first" %}
{% when 2 %}
{% assign className = "post-second" %}
{% when 3 %}
{% assign className = "post-third" %}
{% when 4, 5 %}
{% assign className = "post-middle" %}
{% else %}
{% assign className = "post-last" %}
{% endcase %}
{% if forloop.index == 2 %}
<div class='post-layout-wrapper'>
{% endif %}
<li class="{{ className }}">
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">
{% if post.featured_image %}
<img class="featured-image" src="{{ site.image_url }}/{{ post.featured_image.url }}" />
{% endif %}
<div class="post-details">
<h2>{{ post.title }}</h2>
<h3>{{ post.teaser }}</h3>
<h3 class='info'>
{{ post.date | date: "%b %-d, %Y" }}
● By
{% for author_key in post.authors %}
{% assign author = site.data.authors[author_key] %}
{{author.name}}{% unless forloop.last %}, {% endunless %}
{% endfor %}
</h3>
</div>
</a>
</li>
{% if forloop.index == 3 %}
</div>
{% endif %}
{% endif %}
{% endfor %}
</ul>
<!-- <p class="rss-subscribe">subscribe to {{ site.title }} <a href="{{ '/feed.xml' | prepend: site.baseurl }}">via RSS</a></p> -->
</div>