简体   繁体   中英

GitHub Pages errors with travis-ci and Gemfile

I have a jekyll site: https://github.com/elfet/elfet.github.io with Gemfile:

source 'https://rubygems.org'

gem 'github-pages'

Locally everything is working great. But i got some errors on GitHub Pages.

Travis CI have build status: Errored https://travis-ci.org/elfet/elfet.github.io

So i do not know what to do. Please help!

The travis job mentions:

/home/travis/build.sh: line 188: unexpected EOF while looking for matching `"'
/home/travis/build.sh: line 191: syntax error: unexpected end of file

It could be related to your .travis.yml file, which seems to miss a double quote:

language: ruby
script:
  - bundle exec jekyll build"
                           ^^^
                           (where is the opening double-quote?)

The OP Medvedev reports seeing after that:

Liquid Exception: highlight tag was never closed in _posts/2013-02-05-dot-notation-for-array.html/#excerpt

Contributor extraordinaire SLaks documents in " Jekyll bug: Tag was never closed ":

To fix this, you can either fix every post so that the excerpt is valid Liquid markup, or prevent Jekyll from generating the excerpts in the first place.
Jekyll does not yet have a way to disable excerpts entirely, so the next-best option is to configure it so that the excerpts are always valid Liquid.

You can do this by setting excerpt_separator to a nonsense string that never appears in your posts, so that the excerpt will include the entire post (which is already known to be valid markup).
Better yet, you can set excerpt_separator to an empty string, so that the excerpt will end immediately. This will reduce the amount of work that Jekyll needs to do, making your site build slightly faster.

In short, this bug can be fixed by adding the following line to _config.yml :

excerpt_separator: ""   # Workaround for http://blog.slaks.net/2013-08-09/jekyll-tag-was-never-closed

Once #1386 is released, this line will disable excerpts entirely, adding another miniscule performance boost.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM