Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
59 lines (59 loc) · 2.66 KB
/
Copy pathindex.html
File metadata and controls
59 lines (59 loc) · 2.66 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
---
layout: default
---
<section class="hero is-primary">
<div class="hero-body">
<div class="container is-fluid">
<h1 class="title">
我的学习笔记,很多内容参考了网上资料
</h1>
<h2 class="title">
如有侵权,请联系我删除
</h2>
<h2 class="subtitle">
模板来自: <strong><a href="https://github.com/erayaydin/jekyll-bulma">Jekyll Bulma</a></strong> by <a href="http://github.com/erayaydin">Eray Aydın</a>
</h2>
</div>
</div>
</section>
<section class="section">
<div class="container is-fluid">
{% for post in paginator.posts %}
<div class="card post-card">
{% if post.thumbnail %}
<div class="card-image">
<figure class="image">
<a href="{{ site.baseurl }}{{ post.url }}" title="{{ post.title }}">
<img src="{{ post.thumbnail | prepend: site.baseurl }}" alt="{{ post.title }}">
</a>
</figure>
</div>
{% endif %}
<div class="card-content">
<h3 class="post-title"><a href="{{ site.baseurl }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a></h3>
<p class="post-categories">
{% for category in post.categories %}
<a href="/{{ category | prepend: site.baseurl }}" class="tag {% if site.data.category[category].color %} is-{{ site.data.category[category].color }} {% endif %}">{{ category }}</a>
{% endfor %}
</p>
<!-- {{ post.excerpt }} -->
<p><small>{{ post.date | date: "%Y-%m-%d" }}</small></p>
</div>
</div>
<br>
{% endfor %}
{% if paginator.total_pages > 1 %}
<nav class="pagination is-centered">
<a {% if paginator.previous_page %}href="..{{ paginator.previous_page_path }}"{% endif %} class="pagination-previous {% if paginator.previous_page %}{% else %} is-disabled {% endif %}">上一页</a>
<a {% if paginator.next_page %}href="..{{ paginator.next_page_path }}"{% endif %} class="pagination-next {% if paginator.next_page %}{% else %} is-disabled {% endif %}">下一页</a>
<ul class="pagination-list">
{% for page in (1..paginator.total_pages) %}
<li>
<a {% if page == paginator.page %}{% else %} href="{% if page == 1 %}../{% else %}{% if paginator.page != 1 %}../{% endif %}{{ page }}{% endif %}" {% endif %} class="pagination-link {% if page == paginator.page %} is-current {% endif %}">{{ page }}</a>
</li>
{% endfor %}
</ul>
</nav>
{% endif %}
</div>
</section>