Jekyll搭建本地博客报错Liquid Warning

Jekyll搭建本地博客报错Liquid Warning

Liquid Warning: Liquid syntax error (line 61): Unexpected character & in "site.duoshuo_share && site.duoshuo_username" in /_layouts/post.html
Liquid Warning: Liquid syntax error (line 159): Unexpected character { in "tag[1].size > {{site.featured-condition-size}}" in /_layouts/post.html
Liquid Warning: Liquid syntax error (line 61): Unexpected character & in "site.duoshuo_share && site.duoshuo_username" in /_layouts/post.html
Liquid Warning: Liquid syntax error (line 159): Unexpected character { in "tag[1].size > {{site.featured-condition-size}}" in /_layouts/post.html
Liquid Warning: Liquid syntax error (line 61): Unexpected character & in "site.duoshuo_share && site.duoshuo_username" in /_layouts/post.html
Liquid Warning: Liquid syntax error (line 159): Unexpected character { in "tag[1].size > {{site.featured-condition-size}}" in /_layouts/post.html
Liquid Warning: Liquid syntax error (line 61): Unexpected character & in "site.duoshuo_share && site.duoshuo_username" in /_layouts/post.html
Liquid Warning: Liquid syntax error (line 159): Unexpected character { in "tag[1].size > {{site.featured-condition-size}}" in /_layouts/post.html

部分如上
解决方法: 找到对应目录文件行数修改错误语法

"site.duoshuo_share && site.duoshuo_username" 
修改成 
"site.duoshuo_share and site.duoshuo_username"
"tag[1].size > {{site.featured-condition-size}}" 
修改成
 "tag[1].size > site.featured-condition-size"

参考Liquid 语法 :
http://alfred-sun.github.io/blog/2015/01/10/jekyll-liquid-syntax-documentation/

发布了33 篇原创文章 · 获赞 2 · 访问量 949

猜你喜欢

转载自blog.csdn.net/Btbsja/article/details/104408283