所以我开始在我的jekyll网站本地工作,但我不能建立或服务它,它不断抛出这些错误 首先它说我没有github api所以我问周围他们说安装jekyll-github-meta并导致其他错误。但麻烦的是我不得不删除像这个错误的重要部分
Liquid Exception:包含标记的语法无效。文件包含无效字符或序列:有效语法:/Users/Julie/Documents/GitHub/foamey/_layouts/posts.html中的{%include file.ext param ='value'sparam2 ='value'%}
但如果我将其从{{include {{site.nav}}}}更改为本地链接,则在我上传时会被破坏 如果你想查看文件,可以看到回购链接的链接
https://github.com/ire4ever1190/foamey
jekyll build -t
配置文件:C:/Users/Julie/Documents/GitHub/foamey/_config.yml 资料来源:C:/ Users / Julie / Documents / GitHub / foamey 目的地:C:/ Users / Julie / Documents / GitHub / foamey / _site 增量构建:已禁用。启用--incremental 生成... Liquid Exception:包含标记的语法无效。文件包含无效字符或序列:有效语法:/Users/Julie/Documents/GitHub/foamey/_layouts/posts.html中的{%include file.ext param ='value'param2 ='value'%} C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/jekyll-3.2.1/lib/jekyll/tags/include.rb:63:在`validate_file_name'中:包含标记的语法无效。文件包含无效字符或序列:(ArgumentError)
有效语法:
{%include file.ext param ='value'param2 ='value'%}
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/jekyll-3.2.1/lib/jekyll/tags/include.rb:127:in `render'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/block.rb:151:in `render_token'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/profiler/hooks.rb:5:in `block in render_token_with_profiling'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/profiler.rb:80:in `profile_token_render'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/profiler/hooks.rb:4:in `render_token_with_profiling'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/block.rb:135:in `block in render_all'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/block.rb:122:in `each'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/block.rb:122:in `render_all'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/block.rb:108:in `render'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/template.rb:210:in `block in render'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/template.rb:262:in `with_profiling'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/template.rb:209:in `render'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/template.rb:222:in `render!'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/jekyll-3.2.1/lib/jekyll/liquid_renderer/file.rb:28:in `block (2 levels) in render!'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/jekyll-3.2.1/lib/jekyll/liquid_renderer/file.rb:40:in `measure_bytes'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/jekyll-3.2.1/lib/jekyll/liquid_renderer/file.rb:27:in `block in render!'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/jekyll-3.2.1/lib/jekyll/liquid_renderer/file.rb:47:in `measure_time'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/jekyll-3.2.1/lib/jekyll/liquid_renderer/file.rb:26:in `render!'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/jekyll-3.2.1/lib/jekyll/renderer.rb:114:in `render_liquid'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/jekyll-3.2.1/lib/jekyll/renderer.rb:157:in `place_in_layouts'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/jekyll-3.2.1/lib/jekyll/renderer.rb:71:in `run'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/jekyll-3.2.1/lib/jekyll/site.rb:447:in `block (2 levels) in render_docs'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/jekyll-3.2.1/lib/jekyll/site.rb:445:in `each'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/jekyll-3.2.1/lib/jekyll/site.rb:445:in `block in render_docs'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/jekyll-3.2.1/lib/jekyll/site.rb:444:in `each'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/jekyll-3.2.1/lib/jekyll/site.rb:444:in `render_docs'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/jekyll-3.2.1/lib/jekyll/site.rb:190:in `render'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/jekyll-3.2.1/lib/jekyll/site.rb:69:in `process'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/jekyll-3.2.1/lib/jekyll/command.rb:26:in `process_site'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/jekyll-3.2.1/lib/jekyll/commands/build.rb:63:in `build'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/jekyll-3.2.1/lib/jekyll/commands/build.rb:34:in `process'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/jekyll-3.2.1/lib/jekyll/commands/build.rb:16:in `block (2 levels) in init_with_program'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `call'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `block in execute'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `each'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `execute'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/mercenary-0.3.6/lib/mercenary/program.rb:42:in `go'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/mercenary-0.3.6/lib/mercenary.rb:19:in `program'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/jekyll-3.2.1/exe/jekyll:13:in `<top (required)>'
from C:/RailsInstaller/Ruby2.2.0/bin/jekyll:23:in `load'
from C:/RailsInstaller/Ruby2.2.0/bin/jekyll:23:in `<main>'
答案 0 :(得分:1)
感谢您的更新。我只是尝试构建项目,它对我来说很好。
我注意到你使用的是Jeykll 3.2.1,而不是Github Page(3.3.1)使用的当前版本:https://pages.github.com/versions/
尝试运行gem update jekyll
并查看是否有帮助。