Files: b7757616f9f45cb8a72a4ff4b974a46101673ebc / index.html
1324 bytesRaw
1 | --- |
2 | layout: default |
3 | title: Home |
4 | --- |
5 | |
6 | <div class="posts"> |
7 | {% for post in paginator.posts %} |
8 | <div class="post"> |
9 | <h1 class="post-title"> |
10 | <a href="{{ site.baseurl}}{{ post.url }}"> |
11 | {{ post.title }} |
12 | </a> |
13 | </h1> |
14 | |
15 | <span class="post-date"> |
16 | Ditulis pada {{ post.date | date_to_string }} |
17 | |
18 | {% assign author = site.authors[post.author] %} |
19 | {% if author %} |
20 | <span> oleh <a href="/authors/{{ post.author }}.html">{{ author.name }}</a></span> |
21 | {% endif %} |
22 | </span> |
23 | |
24 | <p> |
25 | {{ post.excerpt : | remove: '<p>' | remove: '</p>' }}<span>… <a href="{{ site.baseurl}}{{ post.url }}">(artikel penuh)</a></span> |
26 | </p> |
27 | |
28 | </div> |
29 | {% endfor %} |
30 | </div> |
31 | |
32 | <div class="pagination"> |
33 | {% if paginator.next_page %} |
34 | <a class="pagination-item older" href="{{ site.baseurl }}/page{{paginator.next_page}}">«</a> |
35 | {% else %} |
36 | <span class="pagination-item older">«</span> |
37 | {% endif %} |
38 | {% if paginator.previous_page %} |
39 | {% if paginator.page == 2 %} |
40 | <a class="pagination-item newer" href="{{ site.baseurl }}/">»</a> |
41 | {% else %} |
42 | <a class="pagination-item newer" href="{{ site.baseurl }}/page{{paginator.previous_page}}">»</a> |
43 | {% endif %} |
44 | {% else %} |
45 | <span class="pagination-item newer">»</span> |
46 | {% endif %} |
47 | </div> |
48 |
Built with git-ssb-web