Skip to content

Commit

Permalink
top
Browse files Browse the repository at this point in the history
  • Loading branch information
fatcat22 committed Oct 23, 2023
1 parent ccfc482 commit e5e79be
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ excerpt_separator: "\n\n\n\n"

# paginate
plugins: [jekyll-paginate]
paginate: 6
paginate: 8

# Share
social-share: true # 开启或者关闭分享功能
Expand Down
1 change: 1 addition & 0 deletions _posts/2023-10-23-zkp-of-programmer.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ categories: zkp
tags: 原创 zkp
author: fatcat22
excerpt: 本站的零知识证明文章汇总
top: true
---

* content
Expand Down
40 changes: 39 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,47 @@
<div class="page clearfix" index>
<div class="left">
<h1>Welcome to fatcat's Blog!</h1>
<!-- <small>The world has changed......</small> -->
<!-- <small>The world has changed......</small> -->
<hr>
<ul>
{% for post in paginator.posts %}
{% if post.top == true %}
<li>
<h2>
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}"><strong><font color="#FF9999">[置顶]</font></strong>{{ post.title }}</a>
</h2>
<div class="label">
<div class="label-card">
<i class="fa fa-calendar"></i>{{ post.date | date: "%F" }}
</div>
<div class="label-card">
{% if post.author %}<i class="fa fa-user"></i>{{ post.author }}
{% endif %}
</div>
<div class="label-card">
{% if page.meta %}<i class="fa fa-key"></i>{{ page.meta }} {% endif %}
</div>

<div class="label-card">
{% include category.html %}
</div>

<div class="label-card">
{% include tag.html %}
</div>
</div>
<div class="excerpt">
{{post.excerpt}}
</div>
<div class="read-all">
<a href="{{ post.url | prepend: site.baseurl }}"><i class="fa fa-newspaper-o"></i>Read All</a>
</div>
<hr>
</li>
{% endif %}
{% endfor %}
{% for post in paginator.posts %}
{% if post.top != true %}
<li>
<h2>
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
Expand Down Expand Up @@ -41,6 +78,7 @@ <h2>
</div>
<hr>
</li>
{% endif %}
{% endfor %}
</ul>

Expand Down

0 comments on commit e5e79be

Please sign in to comment.