我正在尝试在.liquid主题中编写一个简单的else if语句。
这是我的代码。
{% if page.template_suffix == 'survey' %}
{% include 'header_fullbg' %}
{% elsif page.template_suffix == 'surveystart' %}
{% include 'header_fullbg2' %}
{% else %}
{% include header-layout %}
{% endif %}
您可以看到else if语句未被识别为正确吗?有人可以帮帮我吗?我已经证实这不起作用。
答案 0 :(得分:0)
我明白了。语法是正确的。
我忘了我还有另一段代码添加了搞砸了的页脚片段。
我修好了!谢谢你的期待。
在
[2016-07-20 11:11:56,343][DEBUG][action.search ] [Adaptoid] [cpu-2015.09.23][2], node[1Qp4zwR_Q5GLX-VChDOc2Q], [P], v[42], s[STARTED], a[id=KznRm9A5S0OhTMZMoED0qA]: Failed to execute [org.elasticsearch.action.search.SearchRequest@444b07] lastShard [true]
RemoteTransportException[[Adaptoid][172.16.1.238:9300][indices:data/read/search[phase/query]]]; nested: EsRejectedExecutionException[rejected execution of org.elasticsearch.transport.TransportService$4@cd47e on EsThreadPoolExecutor[search, queue capacity = 1000, org.elasticsearch.common.util.concurrent.EsThreadPoolExecutor@9c72f5[Running, pool size = 4, active threads = 4, queued tasks = 1000, completed tasks = 1226]]];
Caused by: EsRejectedExecutionException[rejected execution of org.elasticsearch.transport.TransportService$4@cd47e on EsThreadPoolExecutor[search, queue capacity = 1000, org.elasticsearch.common.util.concurrent.EsThreadPoolExecutor@9c72f5[Running, pool size = 4, active threads = 4, queued tasks = 1000, completed tasks = 1226]]]
at org.elasticsearch.common.util.concurrent.EsAbortPolicy.rejectedExecution(EsAbortPolicy.java:50)
在
{% if page.template_suffix == 'survey' %}
{% include 'footer_fullbg' %}
{%elsif page.template_suffix == 'surveystart' %}
{%else %}
{% include footer-layout %}
{% endif %}