-
Notifications
You must be signed in to change notification settings - Fork 18
/
index.html
66 lines (60 loc) · 2.3 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
57
58
59
60
61
62
63
64
65
66
---
layout: default
title: deliveroo.engineering
---
<h1>The Deliveroo engineering team blog</h1>
<p class="tagline">Only awesome code.</p>
<section id="latest-post">
<div class="post latest">
{% for _page in site.posts limit: site.data.offsets.latest_articles %}
<h3><a href="{{ site.baseurl }}{{ _page.url }}">{{ _page.title }}</a></h3>
<p class="byline">{% include byline.html authors=_page.authors date=_page.date %}</p>
<blockquote>
{{ _page.excerpt | markdownify }}
</blockquote>
<p><a href="{{ _page.url }}" title="{{ _page.title }}">Read more…</a></p>
{% endfor %}
</div>
</section>
{% if site.posts.size > site.data.offsets.latest_articles %}
<hr>
<h2>Recent Articles</h2>
<section id="recent-posts">
{% for _page in site.posts limit: site.data.offsets.recent_articles offset: site.data.offsets.latest_articles %}
<div class="post recent">
<h3><a href="{{ site.baseurl }}{{ _page.url }}">{{ _page.title }}</a></h3>
<p class="byline">{% include byline.html authors=_page.authors date=_page.date %}</p>
<blockquote>
{{ _page.excerpt | markdownify }}
</blockquote>
<p><a href="{{ _page.url }}" title="{{ _page.title }}">Read more…</a></p>
</div>
{% unless forloop.index == 3 %}
<hr>
{% endunless %}
{% endfor %}
</section>
{% endif %}
{% assign other_articles_offset = site.data.offsets.latest_articles | plus: site.data.offsets.recent_articles %}
{% if site.posts.size > other_articles_offset %}
<hr>
<h2>Other Articles</h2>
<section id="other-articles">
<ul class="articles">
{% for _page in site.posts limit: site.data.offsets.other_articles offset: other_articles_offset %}
<li>
<a href="{{ site.baseurl }}{{ _page.url }}" title="{{ _page.title }}">{{ _page.title }}</a>
{% include byline.html authors=_page.authors date=_page.date %}
</li>
{% endfor %}
</ul>
{% assign page_offset =
site.data.offsets.latest_articles |
plus: site.data.offsets.recent_articles |
plus: site.data.offsets.other_articles |
divided_by: site.paginate |
plus: 1
%}
<p class="more"><a href="{{ site.data.routes.articles }}page{{ page_offset }}">More articles…</a></p>
</section>
{% endif %}