Jekyll 的一些常用代码
“阅读更多”
用 <!-- more --> 标签把文章分成两个部分,首页只显示第一部分。
关于split过滤器的说明详见: Adding support for <!– more –> tag to Jekyll without plugins
{% if post.content contains '<!-- more -->' %}
    {{ post.content | split:"<!-- more -->" | first }}
    <a href="{{ post.url | prepend: site.baseurl }}" class="readmore">Read More »</a>  
{% else %}
    {{ post.content }}
{% endif %}