https://ozalpmurat.github.io/ adresindeki blog sitemin kaynak kodları burada duruyor. Siteyi Jekyll ile yaptım. Ubuntu'da yerelde çalıştırmak için yapılması gereken işlemler şöyle:
git clone https://github.com/ozalpmurat/ozalpmurat.github.io.git
sudo apt install ruby-bundler ruby-dev
bundle config set --local path 'vendor/bundle'
bundle install
bundle exec jekyll serve
Bundan sonra çıktısı şöyle oluyor ve TCP 4000 portuna tarayıcıdan bağlanabiliyorsunuz.
$ bundle exec jekyll serve
Configuration file: /home/murat/github/ozalpmurat.github.io/_config.yml
Source: /home/murat/github/ozalpmurat.github.io
Destination: /home/murat/github/ozalpmurat.github.io/_site
Incremental build: disabled. Enable with --incremental
Generating...
done in 0.824 seconds.
Auto-regeneration: enabled for '/home/murat/github/ozalpmurat.github.io'
Server address: http://127.0.0.1:4000/
Server running... press ctrl-c to stop.
Herhangi bir metin editöründe içerik yazabilirsiniz. Ben VSCode kullanıyorum. "Jekyll Run" eklentisi ile VSCode içinde otomatik Jekyll çalıştırma özelliği de geliyor. Tavsiye ederim.
When installing the Chirpy theme through RubyGems.org, Jekyll can only read files in the folders _includes
, _layout
, _sass
and assets
, as well as a small part of options of the _config.yml
file from the theme's gem. If you have ever installed this theme gem, you can use the command bundle info --path jekyll-theme-chirpy
to locate these files.
The Jekyll organization claims that this is to leave the ball in the user’s court, but this also results in users not being able to enjoy the out-of-the-box experience when using feature-rich themes.
To fully use all the features of Chirpy, you need to copy the other critical files from the theme's gem to your Jekyll site. The following is a list of targets:
.
├── _config.yml
├── _data
├── _plugins
├── _tabs
└── index.html
In order to save your time, and to prevent you from missing some files when copying, we extract those files/configurations of the latest version of the Chirpy theme and the CD workflow to here, so that you can start writing in minutes.
Follow the instructions in the Jekyll Docs to complete the installation of Ruby
, RubyGems
, Jekyll
and Bundler
.
Use this template to generate a brand new repository and name it <GH_USERNAME>.github.io
, where GH_USERNAME
represents your GitHub username.
Then clone it to your local machine and run:
$ bundle
Please see the theme's docs.
This work is published under MIT License.