Sun, Oct 4, 2020
sudo apt-get install ruby-full build-essential zlib1g-dev
echo '# Install Ruby Gems to ~/gems' >> ~/.bashrc
echo 'export GEM_HOME="$HOME/gems"' >> ~/.bashrc
echo 'export PATH="$HOME/gems/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
gem install jekyll bundler
jekyll new jekyll-test
cd jekyll-test
jekyll serve --livereload
I had previously tried to install jekyll from the repository with sudo apt-get install jekyll
.
That seems to break the above steps, to fix that I did a sudo apt-get autoremove jekyll
, then gem install jekyll bundler
again.
2020-09-23-jekyll-details.md
would be ![TestScreenshot](/assets/2020-09-23-jekyll-details/test_image.png)
. I would rather not have to put the full path in each time.The theme list can be found at (jekyllrb)[https://jekyllrb.com/resources/]
Installing a new theme requires you to download the new theme, then copy your content over. This is problematic for several reasons:
As usual make sure you have a backup of your repository before you start.
The theme I’m going to use is: https://github.com/volny/creative-theme-jekyll.git
The suggestion on their page was to add it as a gem dependency, however that didn’t work with the default template.
The next step was to download their repo as a starting point and copy my repository over and my content over.
My theme directory is: jekyll-test
I’m starting in the containing folder for jekyll-test.
git clone –depth 1 https://github.com/daviddarnes/alembic.git jekyll-test-new rm -rf jekyll-test-new/.git rm -rf jekyll-test-new/_posts cp -a jekyll-test/.git jekyll-test-new/ cp -a jekyll-test/_posts jekyll-test-new/ mv jekyll-test jekyll-test.bak mv jekyll-test-new jekyll-test