2016-09-25 66 views

回答

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'] %} 
+0

非常感谢! –