-
Notifications
You must be signed in to change notification settings - Fork 3
/
_index.html
116 lines (108 loc) · 3.1 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
---
layout: default
homepage: true
---
<script src="https://unpkg.com/feather-icons"></script>
{% if site.posts.size == 0 %}
<h2>No post found</h2>
{% endif %}
<div class="posts">
{% for post in paginator.posts %}
{% if post.hidden==true %}
{% endif %}
{% unless post.hidden %}
{% if post.pinned==true %}
<article class="post pinned">
<div class="meta">
<h1>
<!--<span title="pinned"><i data-feather="anchor"></i></span>--><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a>
</h1>
<span class="date">
{{ post.date | date: "%Y-%m-%d" }}
</span>
<div class="tag">
{% for tag in post.tags %}
<a class="tag-link" href="{{ site.url }}{{ site.baseurl }}/tags/?tag={{ tag }}">
<span class="rounded-full level-tag">
<span style="color: #868e96;">#</span>{{ tag }}
</span>
</a>
{% endfor %}
</div>
<script>
feather.replace()
</script>
</div>
<div class="entry">
{% if post.subtitle %}
<p>{{ post.subtitle }}</p>
{% endif %}
{{ post.excerpt }}
<div class="pagination" style="border-top: 0; padding: 10px 0;">
<span class="prev">
<a href="{{ site.baseurl }}{{ post.url }}">
Read More
</a>
</span>
</div>
</div>
</article>
{% endif %}
{% endunless %}
{% endfor %}
<!-- <hr />
{% for post in paginator.posts %}
{% if post.hidden==true %}
{% endif %}
{% unless post.hidden %}
{% unless post.pinned %}
<article class="post">
<div class="meta">
<h1>
<a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a>
</h1>
<span class="date">
{{ post.date | date: "%Y-%m-%d" }}
</span>
<div class="tag">
{% for tag in post.tags %}
<a class="tag-link" href="{{ site.url }}{{ site.baseurl }}/tags/?tag={{ tag }}">
<span class="rounded-full level-tag">
<span style="color: #868e96;">#</span>{{ tag }}
</span>
</a>
{% endfor %}
</div>
</div>
<div class="entry">
{{ post.excerpt | truncate: 500 }}
</div>
<!--<div class="pagination" style="border-top: 0; padding: 10px 0;">
<span class="prev">
<a href="{{ site.baseurl }}{{ post.url }}">
Read More
</a>
</span>
</div>--> <!--
</article>
{% endunless %}
{% endunless %}
{% endfor %} -->
</div>
<!--
<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> -->