Quick Start
This is a Jekyll gem-based theme built to be 100% compatible with GitHub Pages. It was created for calinradoni.github.io. I wanted a simple, Javascript free theme.
Here are three ways to use the theme:
- as a remote theme for GitHub Pages
- as a Ruby gem
- by copying the files
As a remote theme for GitHub Pages
Installation
For GitHub Pages, having a content like this for the Gemfile
:
source "https://rubygems.org"
gem 'github-pages', group: :jekyll_plugins
you only have to add this entry:
remote_theme: "CalinRadoni/simple-purple-theme"
to the _config.yml
file. Make sure that no other theme:
or remote-theme:
entries are present in _config.yml
.
Note: you can specify the version or commit to use by appending @
and the
git reference, like this: CalinRadoni/simple-purple-theme@1.0.0
. Without any
supplemental specification the last version from the master
branch will be used.
Usage
If you start in an empty directory you need:
_config.yml
,Gemfile
andindex.html
files. Copy the ones from theme’sdemo
directory as a starting point;- the
pages
directory. Create it and add the files from theme’sdocs/pages
in it; - the
_posts
directory. Create it and put your posts in it; - the
assets/img
directory to hold your images. Copy thelogo.svg
from thedemo
directory in it.
├── assets
│ └── img
│ └── logo.svg (from theme's demo directory)
├── _posts
│ └── (your posts)
├── pages
│ └── (demo files from theme's docs directory)
├── _config.yml (from theme's demo directory)
├── Gemfile (from theme's demo directory)
└── index.html (from theme's demo directory)
To test it run form the directory with _config.yml
:
# first time only, you need to run these two commands to install required files
bundle config set path 'vendor/bundle'
bundle install
# start a web server for your site
bundle exec jekyll serve
then open your browser at http://127.0.0.1:4000/demo/.
As a gem - NOT TESTED
Warning: This section is work-in-progress !
Installation
Add this line to your Jekyll site’s Gemfile
:
gem "simple-purple-theme"
And add this line to your Jekyll site’s _config.yml
(Make sure that no other
theme:
or remote-theme:
entries are present):
theme: simple-purple-theme
And then execute:
$ bundle
Or install it yourself as:
$ gem install simple-purple-theme
By copying the files
Installation
Fork or copy theme’s files from github.com/CalinRadoni/simple-purple-theme.
Usage
If you start in an empty directory you need:
- the following theme directories:
_includes
,_layouts
,_sass
andassets
; - the
pages
directory. Create it and add the files from theme’sdocs/pages
in it; - the
_posts
directory. Create it and put your posts in it; - the
assets/img
directory to hold your images. Copy thelogo.svg
from thedemo
directory in it; _config.yml
,Gemfile
andindex.html
files. Copy the ones from theme’sdemo
directory as a starting point;- comment the
remote_theme:
entry from the_config.yml
file.
├── assets
│ ├── css
│ │ └── (files from theme)
│ └── img
│ └── logo.svg (from theme's demo directory)
├── _includes
│ └── (files from theme)
├── _layouts
│ └── (files from theme)
├── _sass
│ └── (files from theme)
├── _posts
│ └── (your posts)
├── pages
│ └── (demo files from theme's docs directory)
├── _config.yml (from theme's demo directory)
├── Gemfile (from theme's demo directory)
└── index.html (from theme's demo directory)
To test it run form the directory with _config.yml
:
# first time only, you need to run these two commands to install required files
bundle config set path 'vendor/bundle'
bundle install
# start a web server for your site
bundle exec jekyll serve