Simple Personal Website Setup

Objective

Show how to create simple website through GitHub on Ubuntu.

Table of Contents

Personal GitHub Site

Project Structure

<User Name>.github.io
├── 404.html
├── _config.yml
├── docs
│   └── list of docs here
├── Gemfile
├── Gemfile.lock
├── images
│   └── list of images here
├── index.md
├── posts
│   └── list of posts as markdown files here
├── README.md
└── _site
    └── list of necessary site files here

Setup

Install the following:

sudo apt install ruby-full
gem install bundler
git clone git@github.com:<User Name>/<User Name>.github.io.git
jekyll new --skip-bundle
gem "github-pags", "~> GITHUB-PAGES-VERSION", group: :jekyll_plugins
source "https://rubygems.org"

gem "jekyll-theme-primer", "~> 0.6.0"
gem "github-pages", "~> 227", group: :jekyll_plugins

# If you have any plugins, put them here!
group :jekyll_plugins do
  gem "jekyll-feed", "~> 0.12"
end

# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data
# gem and associated library.
platforms :mingw, :x64_mingw, :mswin, :jruby do
  gem "tzinfo", "~> 1.2"
  gem "tzinfo-data"
end

# Performance-booster for watching directories on Windows
gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]

# Lock `http_parser.rb` gem to `v0.6.x` on JRuby builds since newer versions of the gem
# do not have a Java counterpart.
gem "http_parser.rb", "~> 0.6.0", :platforms => [:jruby]
bundle install
name: <Your Name>
title: null
author: null
baseurl: ""
url: "https://<User Name>.github.io"
theme: jekyll-theme-primer
plugins:
  - jekyll-feed
bundle install && bundle exec jekyll serve
firefox --new-tab --url http://localhost:4000/