-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·33 lines (32 loc) · 1.27 KB
/
Copy pathindex.html
File metadata and controls
executable file
·33 lines (32 loc) · 1.27 KB
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
---
layout: default
title: Side Lower
description: Personal blog of SB. Some writings here and there.
---
<div class="home" id="home">
<!--ss="pageTitle">Recent Posts</h1>-->
<ul class="posts noList">
{%- for post in paginator.posts -%}
<li>
{%- assign time_to_read = post.content | number_of_words | divided_by:180 -%}
{%- if time_to_read == 0 -%}
{%- assign time_to_read = 1 -%}
{%- else -%}
{%- assign time_to_read = time_to_read | plus: 1 -%}
{%- endif -%}
<span class="date">{{ post.date | date: '%B %d, %Y' }} | {{ time_to_read }} Minute Read </span>
<h3><a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a></h3>
<p>{%- if post.description -%}{{ post.description }}{%- else -%}{{ post.excerpt | strip_html }}{%- endif -%}</p>
</li>
{%- endfor -%}
</ul>
<!-- Pagination links -->
<div class="pagination">
{%- if paginator.previous_page -%}
<a href="{{ paginator.previous_page_path | prepend: site.baseurl }}" class="previous button__outline">Newer Posts</a>
{%- endif -%}
{%- if paginator.next_page -%}
<a href="{{ paginator.next_page_path | prepend: site.baseurl }}" class="next button__outline">Older Posts</a>
{%- endif -%}
</div>
</div>