Jekyll
Plugins
jekyll-wlinks
Plugin for creating WinerLinks( or here ) for each paragraph as used in this block (seen the little #-symbol?).
This allows deep-linking into single paragraphs or code snippets.
Repository is on github.
Images
Aligment
Images in jekyll can be align using markdown:
![placeholder](https://example.com/example.png){:style="display:block; margin-left:auto; margin-right:auto"}
Errors
JavaScript runtime
Problem
When trying to run Jekyll, the following error appears:
/home/jt/.gem/ruby/gems/execjs-2.4.0/lib/execjs/runtimes.rb:45:in `autodetect': Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)
from /home/jt/.gem/ruby/gems/execjs-2.4.0/lib/execjs.rb:5:in `<module:ExecJS>'
from /home/jt/.gem/ruby/gems/execjs-2.4.0/lib/execjs.rb:4:in `<top (required)>'
from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
...
This happend on systems setup fresh for running jekyll.
Solution
As stated in the Jekyll doucmentation you can either install execjs (gem), therubyracer (gem) or node.js.
gem install therubyracer