Welcome!
To get started immediately:
git clone https://github.com/wes-o/turn-theme
gem install jekyll
bundle install
bundle exec jekyll serve
A few scripts are provided to speed up your development workflow:
First off:
git clone https://www.github.com/wes-o/turn-theme
cd turn-theme
into the project then in your terminal/command prompt..
// dependencies
$ script/bootstrap
// test build status
$ script/build
// start the Jekyll server at localhost:4000
$ script/server
How fast was that for you?
Maybe you would like more clarification. That's fine!
Make a new directory for a Jekyll site, a new Ruby Gem, then add the line to your Jekyll site's Gemfile
:
$ jekyll new jekyll-site && cd jekyll-site
Edit your Gemfile
as:
source "https://rubygems.org"
gem 'github-pages'
And add this line to your Jekyll site's _config.yml
:
theme:
title: Turn Theme
And then execute:
$ bundle install
$ bundle exec jekyll serve
Or install it yourself as:
$ gem install turn-theme
To experiment with this code, add some sample content and run bundle exec jekyll serve
– this directory is setup just like a Jekyll site!
Please follow this directory structure when making a pull request:
_layout.scss
_component.scss
_base.scss
main.scss
When the pull request is reviewed, the maintainer of this project will have a much easier time with incorporation into the larger structure.
-Abstracts: functions, mixins, and variables
-Base: animations, base, typography, and utilities
-External: based on normalize.css project
-Components: a single scss file for each component. For example, _button.scss , _slider.scss
-Layout: header, footer, grid, navigation. Overall wireframe.
-turn-theme.scss
A free and open-source Jekyll theme. Great for blogs and easy to customize.
Open _config.yml
Certain variables, optional can be blank
theme:
title: Turn Theme
avatar:
gravatar:
For a given username:
# SITE CONFIGURATION
baseurl: ""
url: "https://username.github.io"
Jekyll website with subpath:
# SITE CONFIGURATION
baseurl: "/sub-directory"
url: "https://username.github.io/"
Bug reports and pull requests are welcome on GitHub at https://github.com/[wes-o]/hello. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
To set up your environment to develop this theme, run bundle install
.
Your theme is setup just like a normal Jekyll site! To test your theme, run bundle exec jekyll serve
and open your browser at http://localhost:4000
. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
When your theme is released, only the files in _layouts
, _includes
, _sass
and assets
tracked with Git will be bundled.
To add a custom directory to your theme-gem, please edit the regexp in turn-theme.gemspec
accordingly.
The theme is available as open source under the terms of the MIT License.