-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·61 lines (50 loc) · 1.83 KB
/
index.html
File metadata and controls
executable file
·61 lines (50 loc) · 1.83 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
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
---
layout: default
title: Home
---
<div class="notification">
<blockquote>“The more you know, the more you know you don't know.” ― Aristotle</blockquote>
朋友曾說寫筆記,除了將學到的內化成自己的東西外,也是種『累積』~
</div>
<h1>Post List:</h1>
<hr>
<div class="posts">
{% for post in paginator.posts %}
<div class="post">
<img src="{{ post.imgurl }}" alt="{{ post.imgalt }}" class="indeximg">
<h1 class="post-title">
<a href="{{ post.url }}">
{{ post.title }}
</a>
</h1>
<span class="post-date">{{ post.date | date_to_string }}</span>
<div class="tag-index">
Tags :{% for tag in post.tags %} <a class="tag-wrapper" href="/tags/{{ tag }}" rel="tooltip" title="View posts tagged with "{{ tag }}""><span class="tag tags">{{ tag }}</span></a> {% if forloop.last != true %} {% endif %} {% endfor %}
</div>
<!-- {{post.content[i]}} -->
</div>
{% endfor %}
</div>
{% if paginator.total_pages > 1 %}
<div class="pagination">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">« Prev</a>
{% else %}
<span>« Prev</span>
{% endif %}
{% for page in (1..paginator.total_pages) %}
{% if page == paginator.page %}
<em>{{ page }}</em>
{% elsif page == 1 %}
<a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">{{ page }}</a>
{% else %}
<a href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a>
{% endif %}
{% endfor %}
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Next »</a>
{% else %}
<span>Next »</span>
{% endif %}
</div>
{% endif %}