Jekyll Liquid 错误让我困惑

Jekyll Liquid Errors are puzzling me

我一直在尝试使用 Github 创建一个网站,但我对这一切还是个新手。我一直在努力处理一段让我有些头疼的代码:

{% for item in site.static_files %}
    {% if item.path contains '/archive' %}
        {% if item.path contains 'index.html' == false %}
            {% assign split_path = item.path | split: '/' %}
            <p>{{item.path}}</p>
            {% assign filename = split_path.last %}
            <p>{{ filename }}</p>
        {% endif %}
    {% endif %}
{% endfor %}

这会产生以下错误:

Error: Liquid Warning: Liquid Syntax Error (line 5): Expected end_of_string but found comparison in "item.path contains 'index.html' == false" in archive/index.html

有人能帮忙吗?

替换:

if item.path contains 'index.html' == false

与:

unless item.path contains 'index.html'

Liquid 越来越糊涂了。