Jekyll搭建本地博客报错Liquid Warning

给你一囗甜甜゛ 提交于 2020-02-21 06:42:11

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/

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!