forked from apache/flink-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
75 lines (65 loc) · 2.1 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
67
68
69
70
71
72
73
74
75
---
title: Blog
layout: base
---
<div class="row">
<div class="col-sm-12"><h1>Blog</h1></div>
</div>
<div class="row">
<div class="col-sm-8">
<!-- Blog posts -->
{% for post in paginator.posts %}
<article>
<h2 class="blog-title"><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h2>
<p>{{ post.date | date_to_string }}{% if post.author %} by {{ post.author }}{% if post.author-twitter %} (<a href="https://twitter.com/{{ post.author-twitter }}">@{{ post.author-twitter }}</a>){% endif %}{% endif %}</p>
<p>{{ post.excerpt }}</p>
<p><a href="{{ site.baseurl }}{{ post.url }}">Continue reading »</a></p>
</article>
<hr>
{% endfor %}
<!-- Pagination links -->
{% if paginator.total_pages > 1 %}
<ul class="pager">
<li>
{% if paginator.previous_page %}
<a href="{{ site.baseurl }}/blog{% if paginator.previous_page > 1%}/page{{ paginator.previous_page }}{% endif %}" class="previous">Previous</a>
{% else %}
<span>Previous</span>
{% endif %}
</li>
<li>
<span class="page_number ">Page: {{ paginator.page }} of {{ paginator.total_pages }}</span>
</li>
<li>
{% if paginator.next_page %}
<a href="{{ site.baseurl }}/blog/page{{ paginator.next_page }}" class="next">Next</a>
{% else %}
<span>Next</span>
{% endif %}
</li>
</ul>
{% endif %}
</div>
<div class="col-sm-4" markdown="1">
<!-- Blog posts by YEAR -->
{% for post in site.posts %}
{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
{% capture next_year %}{{ post.previous.date | date: "%Y" }}{% endcapture %}
{% if forloop.first %}
<h2>{{this_year}}</h2>
<ul id="markdown-toc">
{% endif %}
<li><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></li>
{% if forloop.last %}
</ul>
{% else %}
{% if this_year != next_year %}
</ul>
<hr>
<h2>{{next_year}}</h2>
<ul id="markdown-toc">
{% endif %}
{% endif %}
{% endfor %}
</div>
</div>