で特定の項目を選択するには:iFix_6.3
、iFix_7.0
、iFix_7.1
、iFix_8.0
、announcement
、およびように...と私は特定のいくつかのタグで操作を実行したいです。これらの複数の値を確認するにはどうすればよいですか?どのように私はタグのリストを持っていると仮定すると液体
ありcontains
があるが、私はそれの反対のために、複数の値を探しています...
ここで私は実際に他のすべてを表示するため、iFix_6.3
タグを含むすべての記事をフィルタリングする例です。投稿。これは実際にはまだ機能しません。複数のタグを扱うためには、+さらに拡張する必要があります。
// posts with iFix_xxx tag should be filtered from the main posts view.
{% assign postUpdates = site.posts | where_exp:"item", "item.tags != 'iFix_6.3'" %}
{% for post in postUpdates limit:10 %}
<div class="postItem inline">
<p class="postDate">{% if post.pinned %}<span class="glyphicon glyphicon-pushpin"></span>{% endif %}{{post.date | date: '%B %d, %Y'}}</p>
<p class="postTitle"><a href="{{site.baseurl}}{{post.url}}">{{post.title}}</a></p>
</div>
{% endfor %}
if文を使用してすべての投稿とフィルタリングをループするのはどうですか? – JoostS