layout | title | component | sidebar |
---|---|---|---|
index |
主页 |
markdown |
bio |
{% 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 == false %}{% continue %}{% endif %} {% assign show = false %} {% assign count = count | plus: 1 %} {% if count <= 10 %}{% assign show = true %}{% endif %} {% if post.emotag %}{% assign show = true %}{% endif %} {% if show == false %}{% continue %}{% endif %}{{post.title}}
{% if post.update %} {{ post.update | date:"%Y-%m-%d" }} {% else %} {{ post.date | date:"%Y-%m-%d" }} {% endif %} {{ post.emotag }}
{{post.excerpt | strip_html | truncate: 140}}
{% endfor %}