0
我一直在試圖用Github創建一個網站,而我對整個事情都很陌生。我一直在掙扎了一段代碼,已經讓我有些頭疼:Jekyll液體錯誤令我困惑
{% 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
誰能幫助?