6/13/2023 0 Comments Gem install jekyll bundler make![]() gem install bundler Update the Gemfile to look like the following: source ' gem jekyll group :jekyllplugins do gem jekyll-feed gem jekyll-redirect-from gem jekyll-seo. I prefer to use a more recent version and for that I use rbenv, the Ruby environment tool, which is essential for every Ruby developer. Delete starter-kit folder and jekyll-theme-simple-texture.gemspec file (they’re for people installing via gem) Install Bundler if haven’t done so. But, I personally don’t like to use the version that comes with the distribution because it is too outdated. So, you are a few commands away from using Jekyll. Most of Linux distributions come with Ruby installed. I’m documenting here the steps I’ve taken. So far, I never took the time to explain how I installed and used Jekyll, but now it is the time because, after migrating from Ubuntu to Linux Mint, I had to reinstall Jekyll to continue writing my blog. The first thing to do is create a new directory for your project and run bundle init. To complete this tutorial, you’ll need to have Ruby and Bundler installed. I actually write the content in Markdown, then Jekyll transforms it into HTML content and generate the website for me, taking care of the entire presentation and navigation. Using Jekyll with Bundler Before You Begin. As described previously here, this website is made of static resources, versioned in a Git repository, and published in a simple server without database or runtime available. In order to work locally, you first have to make sure that our computer has all the necessary software installed. Now Ruby and Rubygems are installed under your username, so these directories are writeable. ![]() When you type which ruby and which gem, you should get responses like this: /usr/local/bin/ruby. Log out of terminal, and then then log back in. (Think of Ruby gems as Wordpress plugins or npm packages). Now use Homebrew to install Ruby: brew install ruby. This might take a while due to the number of dependencies. To install Jekyll and all its default dependencies, launch your favorite command line tool and enter the following command. The bundle init command helps create a Ruby Gemfile to manage the different Jekyll dependencies. Jekyll itself comes in the form of a Ruby Gem, which is an easy-to-install software package. This website looks like a dynamic web application accessing content stored in a database and relying on a PHP runtime, but it is not. If you’ve ever worked with Ruby on Rails, Jekyll projects start out in a very similar way.
0 Comments
Leave a Reply. |