Skip to content

Commit 86a07e4

Browse files
author
Josh Callender
committed
created a basic layout and hooks for jekyll
1 parent 206e94a commit 86a07e4

21 files changed

+927
-6
lines changed

.gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
_site
2+
.sass-cache
3+
.swp
4+
.DS_Store
5+
:w
6+
:q

.ruby-version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1.9.3-p484

Gemfile

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
source 'https://rubygems.org'
2+
3+
require 'json'
4+
require 'open-uri'
5+
versions = JSON.parse(open('https://pages.github.com/versions.json').read)
6+
7+
gem 'github-pages', versions['github-pages']

Gemfile.lock

+126
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
RedCloth (4.2.9)
5+
activesupport (4.2.0)
6+
i18n (~> 0.7)
7+
json (~> 1.7, >= 1.7.7)
8+
minitest (~> 5.1)
9+
thread_safe (~> 0.3, >= 0.3.4)
10+
tzinfo (~> 1.1)
11+
blankslate (2.1.2.4)
12+
celluloid (0.16.0)
13+
timers (~> 4.0.0)
14+
classifier-reborn (2.0.3)
15+
fast-stemmer (~> 1.0)
16+
coffee-script (2.3.0)
17+
coffee-script-source
18+
execjs
19+
coffee-script-source (1.8.0)
20+
colorator (0.1)
21+
execjs (2.2.2)
22+
fast-stemmer (1.0.2)
23+
ffi (1.9.6)
24+
gemoji (2.1.0)
25+
github-pages (32)
26+
RedCloth (= 4.2.9)
27+
github-pages-health-check (~> 0.2)
28+
jekyll (= 2.4.0)
29+
jekyll-coffeescript (= 1.0.1)
30+
jekyll-mentions (= 0.2.1)
31+
jekyll-redirect-from (= 0.6.2)
32+
jekyll-sass-converter (= 1.2.0)
33+
jekyll-sitemap (= 0.6.3)
34+
jemoji (= 0.4.0)
35+
kramdown (= 1.5.0)
36+
liquid (= 2.6.1)
37+
maruku (= 0.7.0)
38+
mercenary (~> 0.3)
39+
pygments.rb (= 0.6.0)
40+
rdiscount (= 2.1.7)
41+
redcarpet (= 3.1.2)
42+
terminal-table (~> 1.4)
43+
github-pages-health-check (0.2.1)
44+
net-dns (~> 0.6)
45+
public_suffix (~> 1.4)
46+
hitimes (1.2.2)
47+
html-pipeline (1.9.0)
48+
activesupport (>= 2)
49+
nokogiri (~> 1.4)
50+
i18n (0.7.0)
51+
jekyll (2.4.0)
52+
classifier-reborn (~> 2.0)
53+
colorator (~> 0.1)
54+
jekyll-coffeescript (~> 1.0)
55+
jekyll-gist (~> 1.0)
56+
jekyll-paginate (~> 1.0)
57+
jekyll-sass-converter (~> 1.0)
58+
jekyll-watch (~> 1.1)
59+
kramdown (~> 1.3)
60+
liquid (~> 2.6.1)
61+
mercenary (~> 0.3.3)
62+
pygments.rb (~> 0.6.0)
63+
redcarpet (~> 3.1)
64+
safe_yaml (~> 1.0)
65+
toml (~> 0.1.0)
66+
jekyll-coffeescript (1.0.1)
67+
coffee-script (~> 2.2)
68+
jekyll-gist (1.1.0)
69+
jekyll-mentions (0.2.1)
70+
html-pipeline (~> 1.9.0)
71+
jekyll (~> 2.0)
72+
jekyll-paginate (1.1.0)
73+
jekyll-redirect-from (0.6.2)
74+
jekyll (~> 2.0)
75+
jekyll-sass-converter (1.2.0)
76+
sass (~> 3.2)
77+
jekyll-sitemap (0.6.3)
78+
jekyll-watch (1.2.0)
79+
listen (~> 2.7)
80+
jemoji (0.4.0)
81+
gemoji (~> 2.0)
82+
html-pipeline (~> 1.9)
83+
jekyll (~> 2.0)
84+
json (1.8.2)
85+
kramdown (1.5.0)
86+
liquid (2.6.1)
87+
listen (2.8.5)
88+
celluloid (>= 0.15.2)
89+
rb-fsevent (>= 0.9.3)
90+
rb-inotify (>= 0.9)
91+
maruku (0.7.0)
92+
mercenary (0.3.5)
93+
mini_portile (0.6.2)
94+
minitest (5.5.1)
95+
net-dns (0.8.0)
96+
nokogiri (1.6.6.1)
97+
mini_portile (~> 0.6.0)
98+
parslet (1.5.0)
99+
blankslate (~> 2.0)
100+
posix-spawn (0.3.9)
101+
public_suffix (1.4.6)
102+
pygments.rb (0.6.0)
103+
posix-spawn (~> 0.3.6)
104+
yajl-ruby (~> 1.1.0)
105+
rb-fsevent (0.9.4)
106+
rb-inotify (0.9.5)
107+
ffi (>= 0.5.0)
108+
rdiscount (2.1.7)
109+
redcarpet (3.1.2)
110+
safe_yaml (1.0.4)
111+
sass (3.4.10)
112+
terminal-table (1.4.5)
113+
thread_safe (0.3.4)
114+
timers (4.0.1)
115+
hitimes
116+
toml (0.1.2)
117+
parslet (~> 1.5.0)
118+
tzinfo (1.2.2)
119+
thread_safe (~> 0.1)
120+
yajl-ruby (1.1.0)
121+
122+
PLATFORMS
123+
ruby
124+
125+
DEPENDENCIES
126+
github-pages (= 32)

_config.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Site settings
2+
title: RendrJS
3+
description: >
4+
Render your Backbone.js apps on the client and the server, using Node.js.
5+
baseurl: ""
6+
url: "http://rendrjs.github.io"
7+
twitter_username: rendrjs
8+
github_username: rendrjs
9+
10+
# Build settings
11+
markdown: redcarpet
12+
highlighter: pygments
13+

_includes/footer.html

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<footer class="site-footer">
2+
3+
<div class="wrapper">
4+
5+
<div class="footer-col-wrapper">
6+
<div class="footer-col">
7+
<ul class="social-media-list">
8+
{% if site.github_username %}
9+
<li>
10+
<a href="https://github.com/{{ site.github_username }}/rendr">
11+
<span class="icon icon--github">
12+
<svg viewBox="0 0 16 16">
13+
<path fill="#828282" d="M7.999,0.431c-4.285,0-7.76,3.474-7.76,7.761 c0,3.428,2.223,6.337,5.307,7.363c0.388,0.071,0.53-0.168,0.53-0.374c0-0.184-0.007-0.672-0.01-1.32 c-2.159,0.469-2.614-1.04-2.614-1.04c-0.353-0.896-0.862-1.135-0.862-1.135c-0.705-0.481,0.053-0.472,0.053-0.472 c0.779,0.055,1.189,0.8,1.189,0.8c0.692,1.186,1.816,0.843,2.258,0.645c0.071-0.502,0.271-0.843,0.493-1.037 C4.86,11.425,3.049,10.76,3.049,7.786c0-0.847,0.302-1.54,0.799-2.082C3.768,5.507,3.501,4.718,3.924,3.65 c0,0,0.652-0.209,2.134,0.796C6.677,4.273,7.34,4.187,8,4.184c0.659,0.003,1.323,0.089,1.943,0.261 c1.482-1.004,2.132-0.796,2.132-0.796c0.423,1.068,0.157,1.857,0.077,2.054c0.497,0.542,0.798,1.235,0.798,2.082 c0,2.981-1.814,3.637-3.543,3.829c0.279,0.24,0.527,0.713,0.527,1.437c0,1.037-0.01,1.874-0.01,2.129 c0,0.208,0.14,0.449,0.534,0.373c3.081-1.028,5.302-3.935,5.302-7.362C15.76,3.906,12.285,0.431,7.999,0.431z"/>
14+
</svg>
15+
</span>
16+
17+
<span class="username">{{ site.github_username }}</span>
18+
</a>
19+
</li>
20+
{% endif %}
21+
22+
{% if site.twitter_username %}
23+
<li>
24+
<a href="https://twitter.com/{{ site.twitter_username }}">
25+
<span class="icon icon--twitter">
26+
<svg viewBox="0 0 16 16">
27+
<path fill="#828282" d="M15.969,3.058c-0.586,0.26-1.217,0.436-1.878,0.515c0.675-0.405,1.194-1.045,1.438-1.809
28+
c-0.632,0.375-1.332,0.647-2.076,0.793c-0.596-0.636-1.446-1.033-2.387-1.033c-1.806,0-3.27,1.464-3.27,3.27 c0,0.256,0.029,0.506,0.085,0.745C5.163,5.404,2.753,4.102,1.14,2.124C0.859,2.607,0.698,3.168,0.698,3.767 c0,1.134,0.577,2.135,1.455,2.722C1.616,6.472,1.112,6.325,0.671,6.08c0,0.014,0,0.027,0,0.041c0,1.584,1.127,2.906,2.623,3.206 C3.02,9.402,2.731,9.442,2.433,9.442c-0.211,0-0.416-0.021-0.615-0.059c0.416,1.299,1.624,2.245,3.055,2.271 c-1.119,0.877-2.529,1.4-4.061,1.4c-0.264,0-0.524-0.015-0.78-0.046c1.447,0.928,3.166,1.469,5.013,1.469 c6.015,0,9.304-4.983,9.304-9.304c0-0.142-0.003-0.283-0.009-0.423C14.976,4.29,15.531,3.714,15.969,3.058z"/>
29+
</svg>
30+
</span>
31+
32+
<span class="username">{{ site.twitter_username }}</span>
33+
</a>
34+
</li>
35+
{% endif %}
36+
</ul>
37+
</div>
38+
39+
<div class="footer-col">
40+
<ul class="contact-list">
41+
<li><a href="#">Issues</a></li>
42+
<li><a href="#">Google Group</a></li>
43+
</ul>
44+
</div>
45+
46+
<div class="footer-col footer-col-3">
47+
<p class="text">{{ site.description }}</p>
48+
</div>
49+
</div>
50+
51+
</div>
52+
53+
</footer>

_includes/head.html

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<head>
2+
<meta charset="utf-8">
3+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
4+
<meta name="viewport" content="width=device-width, initial-scale=1">
5+
6+
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
7+
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
8+
9+
<link rel="stylesheet" href="{{ "/css/main.css" | prepend: site.baseurl }}">
10+
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
11+
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" />
12+
</head>

_includes/header.html

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<header class="site-header">
2+
<div class="wrapper">
3+
<a class="site-title" href="{{ site.baseurl }}/">
4+
<img alt="Rendr" src="http://cl.ly/image/272q3f1u313b/Rendr-logotype.png" width="119px" height="30px" />
5+
</a>
6+
</div>
7+
</header>

_includes/navigation.html

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<div class="navigation">
2+
<h3>
3+
<a href="/#getting-started">Getting Started</a>
4+
</h3>
5+
6+
<h3>
7+
<a href="/model">Model</a>
8+
</h3>
9+
10+
<ul>
11+
<li><a href="/model#initialize">initialize</a></li>
12+
<li><a href="/model#render">render</a></li>
13+
</ul>
14+
15+
<h3><a href="/#examples">Examples</a></h3>
16+
<ul>
17+
<li><a href="/#change-org">Change.org</a></li>
18+
</ul>
19+
</div>

_layouts/content.html

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
layout: default
3+
---
4+
5+
<div class="content">
6+
<article>
7+
{{ content }}
8+
</article>
9+
</div>

_layouts/default.html

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!DOCTYPE html>
2+
<html>
3+
4+
{% include head.html %}
5+
6+
<body>
7+
8+
9+
<div class="page-wrapper">
10+
{% include navigation.html %}
11+
12+
<div class="page-content">
13+
{{ content }}
14+
</div>
15+
</div>
16+
17+
{% include footer.html %}
18+
19+
</body>
20+
21+
</html>

_layouts/page.html

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
layout: default
3+
---
4+
<div class="post">
5+
6+
<header class="post-header">
7+
<h1 class="post-title">{{ page.title }}</h1>
8+
</header>
9+
10+
<article class="post-content">
11+
{{ content }}
12+
</article>
13+
14+
</div>

0 commit comments

Comments
 (0)