forked from laptopwiki/laptopwiki.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
40 lines (38 loc) · 1.08 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
---
layout: default
title: Home
description: "All things laptop"
nav_exclude: true
---
<!-- This loops through the paginated posts -->
{% for post in paginator.posts %}
<h1><a class="link-title" href="{{ post.url }}">{{ post.title }}</a></h1>
<p class="author">
<span class="post-date">{{ post.date | date: "%-d %B %Y" }}</span>
</p>
{%- if post.image != nil -%}
<div class="post-image">
<img src="{{ post.image }}" width="100%"/>
</div>
{%- endif -%}
<div class="post-excerpt">
{{ post.excerpt }}
</div>
<a href="{{ post.url }}"class="read-more">Continue Reading</a>
{% endfor %}
<!-- Pagination links -->
<div class="post-pagination">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path }}" class="post-previous">
←
</a>
{% endif %}
<span class="post-page-number ">
{%- if paginator.page != nil -%}
{{ paginator.page }} of {{ paginator.total_pages }}
{%- endif -%}
</span>
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path }}" class="post-next">→</a>
{% endif %}
</div>