-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblog.html
58 lines (54 loc) · 2.01 KB
/
blog.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
---
layout: default
title: "Lab IT Polsri - Blog"
description: "Take a look at our recent blog posts."
background: /assets/img/bg/desk2.jpg
pagination:
enabled: true
---
<main id="content" class="home" role="main" itemprop="mainContentOfPage" itemscope="itemscope" itemtype="http://schema.org/Blog">
{% for post in paginator.posts %}
<article role="article" class="post-item" itemscope="itemscope" itemtype="http://schema.org/BlogPosting" itemprop="blogPost">
<a class="datetime" href="{{ post.url | prepend: site.baseurl }}">
<meta itemprop="datePublished" content="{{post.date}}">
<time datetime="{{ post.date | date_to_xmlschema }}">
<span class="day">
{{ post.date | date: "%d" }}
</span>
<span class="month-year">
{{ post.date | date: "%B %Y" }}
</span>
</time>
</a>
<div class="content">
<a href="{{ post.url | prepend: site.baseurl }}"><h2 class="post-title" itemprop="name">{{ post.title }}</h2></a>
<p class="description">
{{ post.content | strip_html | truncatewords:40 }}
<a href="{{ post.url | prepend: site.baseurl }}" class="link">Baca Selengkapnya</a>
</p>
<div class="tags">
{% for tag in post.tags %}
<a href="{{ site.baseurl }}/tags/#{{tag | slugify }}">{{ tag }}</a>
{% endfor %}
</div>
</div>
</article>
{% endfor %}
<div id="pg" class="pagination">
<span style="float: right">
{% if paginator.previous_page %}
<a onclick="paginateBlog(this, event)" href="{{ paginator.previous_page_path }}" class="paginate-link paginate-blog">
« Previous
</a>
{% endif %}
<span class="page_number ">
Halaman: {{ paginator.page }} dari {{ paginator.total_pages }}
</span>
{% if paginator.next_page %}
<a onclick="paginateBlog(this, event)" href="{{ paginator.next_page_path }}" class="paginate-link paginate-blog">
Next »
</a>
{% endif %}
</span>
</div>
</main>