My journey to Jekyll!
My journey to Jekyll!
Vorbereitungen
elementary-os
(should be the same for ubuntu)
- after experiments with the apt-ruby-version i decided to restart with the snap-version
1
sudo snap install ruby --classic
- add to .bashrc
- to avoid problems with other gems, I use my own gem-folder-structure aka add to .bashrc
1 2 3 4 5
# Install Ruby Gems to ~/gems export GEM_HOME="$HOME/gems" export PATH="$HOME/gems/bin:$PATH" # ensure snap-ruby is found and all my gems eval `ruby.env`
- close konsole and open a fresh one
- now we’re ready to install additional necessary parts
1 2
sudo apt install build-essential zlib1g-dev gem install jekyll bundler
On
wordpress
install plugin Jekyll-Exporter and export all posts and content
Doing
- generate new repo from chirpy
- configure chirpy-statics
- extract the export to tmp folder
- copy wp_content, _posts to your new blog-folder
- re-arrange _tabs and add i.e. datenschutzerklaerung etc
- reconfigure _config.yml
- cleanup converted posts -
remove permalinks !
- disable build workflow in github!
Finally
1
2
3
4
5
# as I'd like to check everything locally, run jekyll as
jekyll serve
git add -A
git commit -a
git push
as we’re running on a dedicated server
1
2
rsync -azP _sites/ user@remote-host:/srv/www/destinationdir
ssh user@remote-host 'chown -R www-data:www-data /srv/www/destinationdir/*'
finally, up and running
Addendum
Cloning on a different machine, now with ssh-key auth
- do the prereqs …
git clone ...
cd blog
bundle
git submodule init
git submodule update
- now you can build and serve your blog locally
jekyll s
Dieser Eintrag ist vom Autor unter
CC BY 4.0
lizensiert.