2016-11-01 5 views
0

私は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

誰でも助けることができるの?

答えて

1

は交換してください:

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

で:

unless item.path contains 'index.html' 

液体のは混乱します。

関連する問題