Git Product home page Git Product logo

Jekyll Template

This is a template project for jekyll that you can clone and customise to suit your needs. Its quite opinionated in what it provides, the idea is to get you up and running with feed support, analytics and comments and feedback. This is meant for a standalone blog, not for github pages

Please don't fork otherwise I'll see lots of noise on the fork queue that are your customisation for your blog. I suggest you create a repo on github (public or private, its up to you) and do the following assuming the new repo is available at https://github.com/username/reponame:

git clone https://github.com/krisb/jekyll-template.git mysite
cd mysite
rm -rf .git
git init
git commit -m 'initial template based on https://github.com/krisb/jekyll-template'
git remote add origin [email protected]:username/reponame.git
git push origin master

The following sections detail how to set up and use the template. The commands are known to work on my macbook, YRMV.

Ruby 1.9.2 via RVM

I recommend that you install rvm and set everything up using that. For single user install run the following:

bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )

Follow the instructions, adding the necessary lines in .bashrc, e.g.

# RVM
if [[ -s "$HOME/.rvm/scripts/rvm" ]] ; then
  source "$HOME/.rvm/scripts/rvm"
fi

Now source .bashrc (you don't need to do this normally as it runs on login, it is just to update the current term window)

source ~/.bashrc

You can then install and use ruby 1.9.2:

rvm install 1.9.2
rvm use 1.9.2

Gems

Run the following to install the necessary gems:

gem install jekyll rdiscount compass

Markup

I prefer markdown, but you can use a number of supported markup formats.

Pygments (code highlighting)

Assuming you have python installed with easy_install available:

sudo easy_install Pygments

Stylesheets

I recommend that you use compass. I've included _sass/mixins/_syntax.scss for the pygments syntax highlighting.

Rake deploy task

The following tasks are available (use rake -T to list them):

rake build        # Build site with Jekyll
rake check_links  # Check links for site already running on localhost:4000
rake clean        # Clean up generated site
rake deploy       # Build and deploy
rake server       # Start server with --auto

The deploy task is simplistic and uses rsync to copy the generated site to your server. You will need to replace the username, servername and path as appropriate.

Configuration

There are a number of values in _config.yml to customise your site. Change as appropriate.

The following enhancements are baked in and enabled if you provide the configuration required.

Sameer's Projects

bespinclient icon bespinclient

The Bespin project is building a web-based code editor using the emerging HTML5 standard. The editor is easily extensible with JavaScript and can be used in your own applications. (the mozilla/ mirror is READ ONLY, synchronized from mercurial)

bloog icon bloog

RESTful Blog for Google App Engine

diaspora icon diaspora

Distributed and contextual social networking

github-social-badge icon github-social-badge

A GitHub badge that allows a certain amount of surfing around between GitHub repositories, owners, and watchers.

jekyll icon jekyll

The source for the metajack.im blog.

mediawiki-svn icon mediawiki-svn

A mirror of MediaWiki's Subversion repository produced with git-svn(1)

mlcheatsheet icon mlcheatsheet

Machine Learning cheat sheet for linear classifiers and clustering algorithms

newsyc icon newsyc

An iPhone Hacker News client that Doesn't Suck.

now icon now

NowJS makes it easy to build real-time web apps using JavaScript

redcarpet icon redcarpet

Classy wrapper for Upskirt, this time for Ruby.

tf-idf icon tf-idf

Term frequency - inverse document frequency example in Python

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.