Skip to content

Commit 3b2b66e

Browse files
committed
initial commit
0 parents  commit 3b2b66e

29 files changed

+376
-0
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
_site
2+
.DS_Store
3+
node_modules

Gemfile

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source 'https://rubygems.org'
2+
3+
gem "jekyll"

Gemfile.lock

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
albino (1.3.3)
5+
posix-spawn (>= 0.3.6)
6+
classifier (1.3.3)
7+
fast-stemmer (>= 1.0.0)
8+
directory_watcher (1.4.1)
9+
fast-stemmer (1.0.1)
10+
jekyll (0.11.0)
11+
albino (>= 1.3.2)
12+
classifier (>= 1.3.1)
13+
directory_watcher (>= 1.1.1)
14+
kramdown (>= 0.13.2)
15+
liquid (>= 1.9.0)
16+
maruku (>= 0.5.9)
17+
kramdown (0.14.0)
18+
liquid (2.2.2)
19+
maruku (0.6.1)
20+
syntax (>= 1.0.0)
21+
posix-spawn (0.3.6)
22+
syntax (1.0.0)
23+
24+
PLATFORMS
25+
ruby
26+
27+
DEPENDENCIES
28+
jekyll

Gruntfile.coffee

+89
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
module.exports = (grunt) ->
2+
3+
grunt.initConfig
4+
pkg: grunt.file.readJSON 'package.json'
5+
6+
jst:
7+
app:
8+
options:
9+
processName: (filename) ->
10+
filename.replace('_templates/', '').replace('._', '')
11+
namespace: "Application.Templates"
12+
files:
13+
"_includes/js/templates.js": "_templates/*._"
14+
15+
stylus:
16+
app:
17+
files:
18+
"_includes/css/app.css": "_styl/*.styl"
19+
20+
watch:
21+
cs:
22+
files: ["_cs/*"]
23+
tasks: [ 'coffeelint', 'concat', 'coffee']
24+
options:
25+
interrupt: true
26+
forceWatchMethod: 'old'
27+
jst:
28+
files: ["_templates/*"]
29+
tasks: 'jst'
30+
options:
31+
interrupt: true
32+
forceWatchMethod: 'old'
33+
css:
34+
files: ["_styl/*"]
35+
tasks: "stylus"
36+
options:
37+
interrupt: true
38+
forceWatchMethod: 'old'
39+
40+
coffeelint:
41+
app: "_cs/**.coffee"
42+
43+
concat:
44+
coffee:
45+
src: ["_cs/*.coffee", "_cs/*/*.coffee"]
46+
dest: "_app.coffee"
47+
48+
coffee:
49+
app:
50+
files:
51+
"_includes/js/app.js": "_app.coffee"
52+
53+
uglify:
54+
app:
55+
files:
56+
"_includes/js/app.js": "_includes/js/app.js"
57+
templates:
58+
files:
59+
"_includes/js/templates.js": "_includes/js/templates.js"
60+
61+
mincss:
62+
compress:
63+
files:
64+
"_includes/css/app.css": "_includes/css/app.css"
65+
clean:
66+
cs: "_app.coffee"
67+
dsstore: "**/.DS_Store"
68+
69+
csslint:
70+
css:
71+
src: "_includes/css/app.css"
72+
rules:
73+
"ids": false
74+
75+
grunt.loadNpmTasks 'grunt-contrib-concat'
76+
grunt.loadNpmTasks 'grunt-contrib-coffee'
77+
grunt.loadNpmTasks 'grunt-contrib-uglify'
78+
grunt.loadNpmTasks 'grunt-contrib-watch'
79+
grunt.loadNpmTasks 'grunt-contrib-mincss'
80+
grunt.loadNpmTasks 'grunt-contrib-clean'
81+
grunt.loadNpmTasks 'grunt-coffeelint'
82+
grunt.loadNpmTasks 'grunt-jekyll'
83+
grunt.loadNpmTasks 'grunt-contrib-imagemin'
84+
grunt.loadNpmTasks 'grunt-css'
85+
grunt.loadNpmTasks 'grunt-contrib-stylus'
86+
grunt.loadNpmTasks 'grunt-contrib-jst'
87+
88+
grunt.registerTask 'cs', ["coffeelint", "concat", "coffee"]
89+
grunt.registerTask 'default', ["cs", "jst", "stylus", "uglify", "mincss", "clean"]

_config.yml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
server: true
2+
auto: true
3+
exclude: ["node_modules", "package.json", "Gruntfile.coffee", "Gemfile", "Gemfile.lock"]
4+
root: "/"

_cs/router.coffee

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
class Router extends Backbone.Router
2+
3+
routes:
4+
"": "home"
5+
6+
home: ->
7+
new Application.Views.Home().render()
8+
9+
Application.router = new Router()

_cs/views/home.coffee

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class Application.Views.Home extends Backbone.View
2+
el: "#content"
3+
4+
render: ->
5+
@$el.html Application.Templates.home()

_includes/css/app.css

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
body{padding-top:60px;padding-bottom:40px}

_includes/css/bootstrap-responsive.css

+9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

_includes/css/bootstrap.css

+9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

_includes/footer.html

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
</div><!-- /content -->
2+
3+
<footer>
4+
<p>&copy; Company 2012</p>
5+
</footer>
6+
7+
</div> <!-- /container -->
8+
9+
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
10+
<script>window.jQuery || document.write('<script src="assets/js/jquery.min.js"><\/script>')</script>
11+
<script src="assets/js/app.js"></script>
12+
13+
</body>
14+
</html>

_includes/header.html

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
<!DOCTYPE html>
2+
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
3+
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
4+
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
5+
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
6+
<head>
7+
<meta charset="utf-8">
8+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
9+
<title></title>
10+
<meta name="description" content="">
11+
<meta name="viewport" content="width=device-width">
12+
13+
<link rel="stylesheet" href="assets/css/style.css">
14+
15+
<script src="assets/js/modernizr.js"></script>
16+
17+
</head>
18+
<body>
19+
<!--[if lt IE 7]>
20+
<p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
21+
<![endif]-->
22+
23+
<!-- This code is taken from http://twitter.github.com/bootstrap/examples/hero.html -->
24+
25+
<div class="navbar navbar-inverse navbar-fixed-top">
26+
<div class="navbar-inner">
27+
<div class="container">
28+
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
29+
<span class="icon-bar"></span>
30+
<span class="icon-bar"></span>
31+
<span class="icon-bar"></span>
32+
</a>
33+
<a class="brand" href="#">Project name</a>
34+
<div class="nav-collapse collapse">
35+
<ul class="nav">
36+
<li class="active"><a href="#">Home</a></li>
37+
<li><a href="#about">About</a></li>
38+
<li><a href="#contact">Contact</a></li>
39+
<li class="dropdown">
40+
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
41+
<ul class="dropdown-menu">
42+
<li><a href="#">Action</a></li>
43+
<li><a href="#">Another action</a></li>
44+
<li><a href="#">Something else here</a></li>
45+
<li class="divider"></li>
46+
<li class="nav-header">Nav header</li>
47+
<li><a href="#">Separated link</a></li>
48+
<li><a href="#">One more separated link</a></li>
49+
</ul>
50+
</li>
51+
</ul>
52+
<form class="navbar-form pull-right">
53+
<input class="span2" type="text" placeholder="Email">
54+
<input class="span2" type="password" placeholder="Password">
55+
<button type="submit" class="btn">Sign in</button>
56+
</form>
57+
</div><!--/.nav-collapse -->
58+
</div>
59+
</div>
60+
</div>
61+
62+
<div class="container">
63+
64+
<h1></h1>
65+
66+
<div id="content">

_includes/js/app.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

_includes/js/templates.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)