2016-12-14 75 views
1

因此,我開始在本地的jekyll網站工作,但我不能建立或服務它一直在拋出這些錯誤 首先它說我沒有github api所以我問周圍,他們說安裝jekyll -github-meta,並導致其他錯誤的負載。但麻煩是我不斷刪除像這樣的錯誤重要部分jekyll一直在本地拋出錯誤

液體異常:包含標記的語法無效。文件包含無效字符或序列:有效語法:{%包括file.ext PARAM = '值' 參數2 = '值' %}在/Users/Julie/Documents/GitHub/foamey/_layouts/posts.html

但如果我從改變{{包括{{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 增量構建:已禁用。使用 - 增量啓用 正在生成... 流體異常:包含標記的語法無效。文件包含無效字符或序列:有效語法:{%include file.ext param ='value'param2 ='value'%} in /Users/Julie/Documents/GitHub/foamey/_layouts/posts.html C:/ RailsInstaller /Ruby2.2.0/lib/ruby/gems/2.2.0/gems/jekyll-3.2.1/lib/jekyll/tags/include.rb:63:in`validate_file_name':包含標記的語法無效。文件包含無效字符或序列:(引發ArgumentError)

有效語法:

{%包括file.ext PARAM = '值' 參數2 = '值' %}

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

請問您可以運行jekyll build -t來獲取更多信息嗎? – deveth0

回答

1

感謝您的更新。我只是試圖建立這個項目,對我來說工作得很好。

我注意到,您usign Jeykll 3.2.1,而不是目前的版本通過Github上頁(3.3.1)使用:https://pages.github.com/versions/

嘗試運行gem update jekyll看看,如果這有助於。