<div class="well">
<h4>Recent posts</h4>
<ul class="posts" span="recent">
{% for post in site.posts limit:5 %}
<li>
<span>{{ post.date | date_to_string }}</span>
<a href="{{ BASE_PATH }}{{ post.url }}">
{{ post.title }}</a>
</li>
{% endfor %}
</ul>
</div>
这是一个生成最新博客的模板代码;
不懂的地方:site.posts;这里面的site是指什么?
post.date | date_to_string ;查了下liquid语法,只发现date过滤器,没发现 date_to_string 过滤器?
"{{ BASE_PATH }}{{ post.url }}" 这两个变量时什么?
求大神解答下,万分感谢!!
下面图片是博客源码的目录: