Skip to content
This repository has been archived by the owner on Sep 18, 2022. It is now read-only.

Commit

Permalink
Jekyll & ZURB is alive.
Browse files Browse the repository at this point in the history
  • Loading branch information
razor-x committed Jul 19, 2013
0 parents commit 8be33ce
Show file tree
Hide file tree
Showing 44 changed files with 18,858 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.jekyll-assets-cache/
.kateproject.d/
_site
Gemfile.lock
4 changes: 4 additions & 0 deletions .kateproject
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name" : "jekyll-skeleton",
"files" : [ { "git" : 1 } ]
}
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Changelog

## 0.0.1

- Initial release.
11 changes: 11 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
source 'https://rubygems.org'

gem 'rake'
gem 'bump'

gem 'jekyll', '~> 1.1.0'
gem 'jekyll-assets', '~> 0.6.0'
gem 'uglifier', '~> 2.1.2'
gem 'coffee-script', '2.2.0'
gem 'compass', '~> 0.12.2'
gem 'zurb-foundation', '~> 4.3.0'
20 changes: 20 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
The MIT License (MIT)

Copyright (c) 2013 Evan Sosenko

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Jekyll & ZURB

Source for your personal blog running on Jekyll and Foundation.
Just clone and blog: create the `_posts` and `_drafts` folder.

- Bare bones: HTML5 & CSS3 ready.
- Running [Foundation by ZURB](http://foundation.zurb.com/).
- Asset pipeline with [Jekyll::AssetsPlugin](https://github.com/ixti/jekyll-assets).
- [Compass](http://compass-style.org/), [Sass](http://sass-lang.com/), [CoffeeScript](http://coffeescript.org/).
- Basic [Rake](https://github.com/jimweirich/rake) tasks with support for dev and testing modes, run `rake -D` for info.
- [Disqus](https://disqus.com/) ready: set `disqus: your_shortname` in `_config.yml`.
- [Google Analytics](http://www.google.com/analytics/) ready: set `google_analytics: UA-YOUR_CODE` in `_config.yml`.
73 changes: 73 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# Standard library
require 'rake'
require 'yaml'
require 'fileutils'

# Load the configuration file
config = YAML.load_file '_config.yml'

testing_config = '_config.yml,_config.testing.yml'
dev_config = '_config.yml,_config.dev.yml'

# Set "rake watch" as default task
task :default => :draft

# spawn a server and kill it gracefully when interrupt is received
def spawn *cmd
pid = Process.spawn *cmd

switch = true
Signal.trap 'SIGINT' do
Process.kill( :QUIT, pid ) && Process.wait
switch = false
end
while switch do sleep 1 end
end

# rake build
desc 'Generate the site'
task :build do
system 'jekyll', 'build'
end

# rake test
desc 'Generate the site and start a server (no auto generate).'
task :test do
spawn 'jekyll', 'serve', '--config', testing_config
end

# rake watch
desc 'Start a server and watch the site for changes.'
task :watch do
spawn 'jekyll', 'serve', '--watch', '--config', testing_config
end

# rake dev
desc 'Start a server and watch the site for changes.' + "\n" +
'Loads _config.dev.yml as an additional config file.'
task :dev do
spawn 'jekyll', 'serve', '--watch', '--config', dev_config
end

# rake draft
desc 'Start a server and watch the site for changes.' + "\n" +
'Include all drafts in site.'
task :draft do
spawn 'jekyll', 'serve', '--watch', '--drafts', testing_config
end

# rake deploy
desc 'Deploy the site using rsync.'
task :deploy do
raise '>> error: must add :depoly: section to _config.yml.' if config[:deploy].nil?

local = File.expand_path '_site/'
server = config[:deploy][:server]
user = config[:deploy][:user]
port = config[:deploy][:port]
path = config[:deploy][:path]

flags = %w{ -r -t --del -e -z }

system 'rsync', *flags, "ssh -p #{port}", local, "#{user}@#{server}:#{path}"
end
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.0.1
Binary file added _assets/images/html5-badge-h-css3-semantics.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions _assets/javascripts/app.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# add JavaScript required for your app (will be compressed together)
#= require vendor/foundation/foundation
4 changes: 4 additions & 0 deletions _assets/javascripts/vendor/custom_modernizr.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions _assets/javascripts/vendor/disqus.js.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
var disqus_shortname = '<%= site.config['disqus'] %>';

(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
Loading

0 comments on commit 8be33ce

Please sign in to comment.