Background
The crash of my computer in the last weekend motivated me to think
about using Octopress on Windows 7. It is an irony
that the computer had been fixed before I could finally build the
site with rake generate
and start writing posts for this blog on
Windows 7.
Problems
Provided that a blogger have some experience in using computers, the
setup should be easy for his/her who wish to start a new Octopress
blog on Windows and post simple contents like text, pictures, videos,
etc.
However, I would post something more complicated, such as code blocks
with syntax highlighting. Having spent time experimenting with code
and commands, I don’t want to forget them and it’s better to write
them down. I prefer a blog over a paper notebook.
Before writing anything new, I tested if I could locally build the
site from the source
branch cloned from the remote repository on
GitHub on this Sunday, and the first Liquid exception
occurred. I remembered rake
said something like this.
C:\github\vincenttam.github.io>rake generate
## Generating Site with Jekyll
unchanged sass/print.scss
identical source/stylesheets/screen.css
Configuration from C:/github/vincenttam.github.io/_config.yml
Building site: source -> public
Liquid Exception: Pygments can't parse unknown language: tex. in 2014-03-16-latex-template-for-essays.markdown
C:/github/vincenttam.github.io/plugins/pygments_code.rb:27:in `rescue in pygments'
C:/github/vincenttam.github.io/plugins/pygments_code.rb:24:in `pygments'
C:/github/vincenttam.github.io/plugins/pygments_code.rb:14:in `highlight'
C:/github/vincenttam.github.io/plugins/code_block.rb:82:in `render'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/liquid-2.3.0/lib/liquid/block.rb:94:in `block in render_all'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/liquid-2.3.0/lib/liquid/block.rb:92:in `collect'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/liquid-2.3.0/lib/liquid/block.rb:92:in `render_all'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/liquid-2.3.0/lib/liquid/block.rb:82:in `render'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/liquid-2.3.0/lib/liquid/template.rb:124:in `render'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/liquid-2.3.0/lib/liquid/template.rb:132:in `render!'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/jekyll-0.12.0/lib/jekyll/convertible.rb:79:in `do_layout'
C:/github/vincenttam.github.io/plugins/post_filters.rb:167:in `do_layout'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/jekyll-0.12.1/lib/jekyll/post.rb:195:in `render'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/jekyll-0.12.1/lib/jekyll/site.rb:200:in `block in render'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/jekyll-0.12.1/lib/jekyll/site.rb:199:in `each'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/jekyll-0.12.1/lib/jekyll/site.rb:199:in `render'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/jekyll-0.12.1/lib/jekyll/site.rb:41:in `process'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/jekyll-0.12.1/bin/jekyll:264:in `<top (required)>'
C:/Ruby193/lib/ruby/gems/1.9.1/bin/jekyll:23:in `load'
C:/Ruby193/lib/ruby/gems/1.9.1/bin/jekyll:23:in `<main>'
Build Failed