jekyll
Plugins
mathjax
Insert the follwing code into head.html
<!-- MathJax -->
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]} });
</script>
<script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script>
Troubleshooting
- Error: Address already in use
lsof -wni tcp:4000
kill -9 PID
- Error:
cannot load such file -- webrick (LoadError)
gem install webrick
- Install on M1 Mac
brew install rbenv ruby-build
rbenv install 3.0.0
rbenv global 3.0.0
export PATH="/opt/homebrew/opt/ruby/bin:/opt/homebrew/lib/ruby/gems/3.1.0/bin:$PATH"
gem install jekyll webrick