{% set host= site.configs.host or 'fartodo.com' %} {% if request.host in [host, 'www.'+host]%} {% include "todo_index.html" %} {% else %} {% include "blog_index.html" %} {% endif %} {# 如果源码过于简单并且主要使用include来完成拼接,你需要额外标注注释,以防跟别人的模板产生一致性冲突 #}