mirror of
https://github.com/kaka111222333/kaka111222333.github.io.git
synced 2025-12-18 07:44:35 +08:00
更新博客配置
This commit is contained in:
42
index.html
42
index.html
@@ -1,52 +1,14 @@
|
||||
---
|
||||
layout: default
|
||||
---
|
||||
<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.pinned==true %}
|
||||
<article class="post pinned">
|
||||
<h1>
|
||||
<span title="pinned"><i data-feather="anchor"></i></span><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>
|
||||
|
||||
<script>
|
||||
feather.replace()
|
||||
</script>
|
||||
</div>
|
||||
|
||||
<div class="entry">
|
||||
{{ post.excerpt | truncate: 200 }}
|
||||
</div>
|
||||
|
||||
<a href="{{ site.baseurl }}{{ post.url }}" class="read-more">Read More</a>
|
||||
</article>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
{% for post in paginator.posts %}
|
||||
{% unless post.pinned %}
|
||||
{% unless post.draft %}
|
||||
<article class="post">
|
||||
<h1>
|
||||
<a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a>
|
||||
@@ -74,7 +36,7 @@ layout: default
|
||||
|
||||
<a href="{{ site.baseurl }}{{ post.url }}" class="read-more">Read More</a>
|
||||
</article>
|
||||
{% endunless %}
|
||||
{% endunless %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user