drbunsen
drbunsen

Reputation: 10709

Trouble with generating _site files in Jekyll

I just migrated to another computer and installed Jekyll. Now I can't seems to get Jekyll to generate my website. When I run jekyll --no-server I get:

/Users/sb/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': iconv will be deprecated in the future, use String#encode instead.
Configuration from /Users/sb/Sites/drb/_config.yml
Building site: /Users/sb/Sites/drb -> ./_site
/Users/sb/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych.rb:203:in `parse': (<unknown>): did not find expected ',' or ']' while parsing a flow sequence at line 6 column 13 (Psych::SyntaxError)
    from /Users/sb/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych.rb:203:in `parse_stream'
    from /Users/sb/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych.rb:151:in `parse'
    from /Users/sb/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych.rb:127:in `load'
    from /Users/sb/.rvm/gems/ruby-1.9.3-p194/gems/jekyll-0.11.2/lib/jekyll/convertible.rb:33:in `read_yaml'
    from /Users/sb/.rvm/gems/ruby-1.9.3-p194/gems/jekyll-0.11.2/lib/jekyll/post.rb:39:in `initialize'
    from /Users/sb/.rvm/gems/ruby-1.9.3-p194/gems/jekyll-0.11.2/lib/jekyll/site.rb:163:in `new'
    from /Users/sb/.rvm/gems/ruby-1.9.3-p194/gems/jekyll-0.11.2/lib/jekyll/site.rb:163:in `block in read_posts'
    from /Users/sb/.rvm/gems/ruby-1.9.3-p194/gems/jekyll-0.11.2/lib/jekyll/site.rb:161:in `each'
    from /Users/sb/.rvm/gems/ruby-1.9.3-p194/gems/jekyll-0.11.2/lib/jekyll/site.rb:161:in `read_posts'
    from /Users/sb/.rvm/gems/ruby-1.9.3-p194/gems/jekyll-0.11.2/lib/jekyll/site.rb:128:in `read_directories'
    from /Users/sb/.rvm/gems/ruby-1.9.3-p194/gems/jekyll-0.11.2/lib/jekyll/site.rb:98:in `read'
    from /Users/sb/.rvm/gems/ruby-1.9.3-p194/gems/jekyll-0.11.2/lib/jekyll/site.rb:38:in `process'
    from /Users/sb/.rvm/gems/ruby-1.9.3-p194/gems/jekyll-0.11.2/bin/jekyll:250:in `<top (required)>'
    from /Users/sb/.rvm/gems/ruby-1.9.3-p194/bin/jekyll:19:in `load'
    from /Users/sb/.rvm/gems/ruby-1.9.3-p194/bin/jekyll:19:in `<main>'
    from /Users/sb/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `eval'
    from /Users/sb/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `<main>'

Jekyll seems to be working correctly, but my markdown files in _posts do not seem to be converted to HTML, since I do not have any files in _site. Deleting the _site directory then regenerating my site creates a new _site, but there is no content inside the folder. Can anyone help? Thanks.

Upvotes: 1

Views: 1294

Answers (1)

drbunsen
drbunsen

Reputation: 10709

Solved. Turned out to be the use of a question mark in the YAML front matter.

Upvotes: 1

Related Questions