Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
48 lines (46 sloc) 1.19 KB
layout title component sidebar
index
主页
markdown
bio
<style type="text/css"> #recent-posts>*:first-child { margin-top: 0 !important; } .markdown-body a { font-weight: 400; } .sticky-symbol { font-size: 16px; } .emotag { padding-left: 8px; font-size: .8em; } </style>
{% assign sticky_posts = site.posts | where: "display","sticky" %} {% for post in sticky_posts %}

📌{{ post.emotag }} {{post.title}}

{{post.excerpt | strip_html | truncate: 70}}

{% endfor %} {% assign count = 0 %} {% for post in site.posts %} {% assign show = false %} {% if post.display %}{% if post.display == "normal" %}{% assign show = true %}{% endif %} {% else %}{% assign show = true %} {% endif %} {% if show == true %} {% assign count = count | plus: 1 %} {% if count <= 5 %}

{{post.title}}

{{ post.date | date:"%Y-%m-%d" }}{{ post.emotag }}

{{post.excerpt | strip_html | truncate: 140}}

{% endif %} {% endif %} {% endfor %}

>> 查看全部博文...