8000 GitHub - lygaret-attic/jekyll-lair: A base setup for a Jekyll-powered project
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on May 2, 2020. It is now read-only.

lygaret-attic/jekyll-lair

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jekyll-lair

jekyll-lair is a template to use when you're starting out using jekyll for a static website project. It's pretty opinionated, and may not be for everybody, but, seeing as how it provides almost no functionality of it's own, that's probably not a bad thing.

What is it?

It's about 30 minutes worth of work that you don't have to do.

jekyll-lair constists of a particular directory layout, a couple pre-included plugins (mostly from the list at the jekyll project's wiki), and a Rakefile to manage simple steps, like starting a preview server, etc, etc.

Importantly, it's not a framework. It doesn't include base styles, a template switcher, any jquery plugins, yahoo widgets or google+ buttons. Where there are common pieces of markup that get used a lot (google analytics), they're included in the _includes directory, but not in the default layout.

If you want something to build your blog off of, see the Octopress project.

Opinions

All of these are really easy to change; they're included simply by plugins that are in by default and some Rake tasks.

Why?

There's about seventeen steps I run through everytime I start out a new project (usually static mockups). I'm tired of it.

I use a standard markup base and a couple specific plugins in almost every project I run, so they're included here. A good number of them come from the various gists linked to in the jekyll project's wiki page for plugins. Credit is given where there's no explicit licence, and the license is included if there is.

If I'm using a plugin you wrote and you'd rather I not be, please, let me know so I can pull it.

What about Octopress?

The excellent Octopress project is great for running a blog, and if that's your goal, I'd highly recommend looking at it before using jekyll-lair. It feels way too heavy for something that's not a blog though, and most of my static projects end up pulling more than half of what's there.

Plus, where there's a will, there's a git init.

Getting Started

  1. Get the project into directory.

    This isn't a project you clone. You can, if you'd like to contribute a fix for something (hint hint), but in general, this is a template you You can download the zipball, or, from the commandline:

     $ wget https://github.com/lygaret/jekyll-lair/tarball/master | tar -xz .
    
  2. Install required libraries.

     $ bundle install
    
  3. Run the preview server.

     $ rake preview
    
  4. Profit!

    Visit http://localhost:4500/

Standard Rakefile targets

  • rake config

    prints the current configuration from _config.yml and exits. Use this to see how your config file gets merged with the defaults.

  • rake generate

    runs jekyll, with it's output going to public.

  • rake preview

    starts jekyll, with the auto and server, making the site you're working on available at http://localhost:9292/.

    You can configure the preview server using the _config.yml file. See the section marked off as "Jekyll Preview Configuration".

  • rake archive

    generates an archive of the _public directory of the site, placing it at public_archive.tgz.

    To change the location where the archive is saved, or change the archive to be a zipfile rather than a tarball, change the lair.archive object in _config.yml.

About

A base setup for a Jekyll-powered project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0