Jekyll

Install Ruby


  1. dnf install ruby
  2. select ruby module version
    dnf module list ruby # check available version of ruby
    dnf module reset ruby
    dnf module enable ruby:3.1
    dnf moudle install ruby:3.1/common
    
  3. install jekyll and bundle
TIP : what is the bundle ?

Gem : install module without considering dependency. And Bundle : install modules with cosindering dependency


Test Jekyll locally


  1. init jekyll
     jekyll new ./
    
  2. install modules - with dependency via bundle
    bundle install
    
  3. run localhost
     bundle exec jekyll serve
    
  4. Check dependency to respond error “Module not imported”
    • If there is error, search install command like
       gem rack -> gem 'rack', '~> 1.6', '>= 1.6.4'
      
    • and add it to Gemfile


Apply theme


  1. Download and Copy all thing that in repository
  2. edit _config.py
  3. check dependency and do bundle install

TIP : If the theme is from remote_theme,

First, do fork to your repositorydependency. Then Second, must edit url and if needed, edit baseurl. And Last, edit remote_theme : {username}/{repository}


Add post


  1. create markdown file with titled YYYY-MM-DD-posting_title.md
  2. bundle exec jekyll serve : check in local
  3. push to git : deploy posting

Appendix


results matching ""

    No results matching ""