液体警告:液体语法错误:当我jekyll服务时出现意外字符

时间:2016-09-25 16:00:07

标签: jekyll liquid

1 个答案:

答案 0 :(得分:1)

Unexpected character &

您想使用and而不是&&

site.duoshuo_share and site.duoshuo_username

Unexpected character {

错误实际上就是您引用变量的方式。您不能使用这样的连字符,也不需要在{{ }}标记内使用{% %}

假设它在if标签中:

{% if tag[1].size > site.featured_condition_size %}

或者:

{% if tag[1].size > site['featured-condition-size'] %}
相关问题