Based in Honolulu, HI, 3leet5u is the software sketchbook of Tristan Madden.

Howto: Create a static website using Jekyll

 To use Jekyll, you must have an existing installation Ruby on your system. The installation package I chose was Ruby+Devkit 2.4.4-2 (x64). Ensure that the “Add Ruby executables to your PATH” option is checked.

To use Jekyll, you must have an existing installation Ruby on your system. The installation package I chose was Ruby+Devkit 2.4.4-2 (x64). Ensure that the “Add Ruby executables to your PATH” option is checked.

 Before continuing, verify that Ruby installed correctly by checking the version in Command Prompt.

Before continuing, verify that Ruby installed correctly by checking the version in Command Prompt.

ruby -v
 Update your installation.

Update your installation.

gem update --system
 Install Jekyll.

Install Jekyll.

gem install jekyll
 Use Jekyll’s ‘new’ command to create a directory that will contain all of your website’s default content.

Use Jekyll’s ‘new’ command to create a directory that will contain all of your website’s default content.

jekyll new my-website
 Enter the directory Jekyll generated through the command prompt and list the contents of that directory to verify that everything was created correctly.

Enter the directory Jekyll generated through the command prompt and list the contents of that directory to verify that everything was created correctly.

cd my-website
dir
 While inside of the newly generated directory, use the ‘serve’ command to start a  local  server.

While inside of the newly generated directory, use the ‘serve’ command to start a local server.

jekyll serve
 Jekyll serves on port 4000 by default. Navigate to localhost in the web browser of your choice to see the fruits of your labor.

Jekyll serves on port 4000 by default. Navigate to localhost in the web browser of your choice to see the fruits of your labor.

http://localhost:4000/

Writing to a file in Rust