-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
64 lines (48 loc) · 1.82 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
---
layout: default
title: Zephir Language Blog
description: Zephir is an open source, high-level/domain specific language designed to ease the creation and maintainability of extensions for PHP, with a focus on type and memory safety.
featured_image: /images/demo/demo-portrait.jpg
---
<div class="blog single">
<div class="wrap">
{% for post in paginator.posts %}
<article class="blog-post">
<div class="blog-post__header">
<h2 class="blog-post__title"><a href="{{ post.url }}">{{ post.title }}</a></h2>
<p class="blog-post__subtitle">{{ post.date | date_to_long_string }}</p>
</div>
{% if post.featured_image %}
<a href="{{ post.url }}" class="blog-post__image"
style="background-image: url({{ post.featured_image }});"></a>
{% endif %}
<div class="blog-post__content">
{{ post.excerpt }}
<p>
<a href="{{ post.url }}" class="button">Read More</a>
</p>
</div>
</article>
{% endfor %}
</div>
</div>
{% if paginator.total_pages > 1 %}
<div class="pagination">
{% if paginator.previous_page %}
<div class="pagination__prev">
<a href="{{ paginator.previous_page_path | prepend: site.baseurl }}"
class="button button--large">
<i class="fa fa-angle-left" aria-hidden="true"></i> <span>Newer Posts</span>
</a>
</div>
{% endif %}
{% if paginator.next_page %}
<div class="pagination__next">
<a href="{{ paginator.next_page_path | prepend: site.baseurl }}"
class="button button--large">
<span>Older Posts</span> <i class="fa fa-angle-right" aria-hidden="true"></i>
</a>
</div>
{% endif %}
</div>
{% endif %}