-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
67 lines (62 loc) · 1.5 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
65
66
67
---
layout: default
title: Posts
pagination:
enabled: true
category: post
permalink: /:num/
---
{% if site.categories.posts.size == 0 %}
<h2>No note found</h2>
{% endif %}
<div class="posts">
{% for post in site.categories.posts %}
<article class="post">
<h1>
<a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a>
</h1>
<div clsss="meta">
<span class="date">
{{ post.date | date: "%Y-%m-%d" }}
</span>
<ul class="tag">
{% for tag in post.tags %}
<li>
<a href="{{ site.url }}{{ site.baseurl }}/tags#{{ tag }}">
{{ tag }}
</a>
</li>
{% endfor %}
</ul>
</div>
{% if post.description %}
<div class="list-post-desc">
<p>{{ post.description }}</p>
</div>
{% else %}
<div class="entry">
{{ post.excerpt }}
</div>
{% endif %}
<a href="{{ site.baseurl }}{{ post.url }}" class="read-more">Read More</a>
</article>
{% endfor %}
</div>
{%comment%}
<div class="pagination">
{% if paginator.previous_page %}
<span class="prev">
<a href="{{ site.baseurl }}{{ paginator.previous_page_path }}" class="prev">
 Previous
</a>
</span>
{% endif %}
{% if paginator.next_page %}
<span class="next">
<a href="{{ site.baseurl}}{{ paginator.next_page_path }}" class="next">
Next 
</a>
</span>
{% endif %}
</div>
{%endcomment%}