我的代码是:
<div class="recent-posts">
{% for post in site.posts | limit:3 %}
<div class="recent-posts-inline">
{% if post.featured-image %}{% include post-featured-image.html image=post.featured-image alt=page.featured-image-alt %}{% endif %}
<h4>
<a href="{{ post.url }}">{{ post.title }}</a>
</h4>
<p>{{ post.excerpt | strip_html | strip_newlines | truncate: 156 }}</p>
<p><a href="{{ post.url }}">Read More...</a></p>
</div>
{% endfor %}
</div>
我尝试使用where_exp过滤器,但无济于事。这就是为什么我不得不再次问这个问题。