mirror of
https://github.com/LeuisKen/leuisken.github.io.git
synced 2026-01-18 14:27:07 +00:00
45 lines
1.2 KiB
HTML
45 lines
1.2 KiB
HTML
---
|
|
layout: default
|
|
sidePart: true
|
|
---
|
|
|
|
<div class="home">
|
|
<ul class="posts">
|
|
{% for post in paginator.posts %}
|
|
{% if post.release %}
|
|
<li>
|
|
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
|
|
<p class="post-date">Posted on {{ post.date | date: "%b %-d, %Y" }}
|
|
{% for label in post.labels %}
|
|
<a href="{{ site.baseurl }}/all-articles/?label={{ label }}"><span class="post-label">{{ label }}</span></a>
|
|
{% endfor %}
|
|
</p>
|
|
<p class="post-description">{{ post.description }} <a class="post-link2" href="{{ post.url | prepend: site.baseurl }}">继续阅读...</a></p>
|
|
</li>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
|
|
<!-- Pager indicator -->
|
|
<ul class="pager wrap">
|
|
{% if paginator.previous_page %} {% if paginator.previous_page == 1 %}
|
|
<li class="previous">
|
|
<a href="{{ site.url }}/">
|
|
← Newer
|
|
</a>
|
|
</li>
|
|
{% else %}
|
|
<li class="previous">
|
|
<a href="{{ site.url }}/page{{ paginator.previous_page }}">
|
|
← Newer
|
|
</a>
|
|
</li>
|
|
{% endif %} {% endif %} {% if paginator.next_page %}
|
|
<li class="next">
|
|
<a href="{{ site.url }}/page{{ paginator.next_page }}">
|
|
Older →
|
|
</a>
|
|
</li>
|
|
{% endif %}
|
|
</ul> |