Skip to content

Commit bf78e5d

Browse files
committed
design updated
1 parent c694b05 commit bf78e5d

File tree

11 files changed

+1267
-116
lines changed

11 files changed

+1267
-116
lines changed

_layouts/chapter.html

Lines changed: 88 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,98 @@
1+
---
2+
chapters:
3+
- Syntax
4+
- Classes and Objects
5+
- Strings
6+
- Arrays
7+
- Dates and Times
8+
- Math
9+
- Functions
10+
- Metaprogramming
11+
- jQuery
12+
- Ajax
13+
- Regular Expressions
14+
- Networking
15+
- Design Patterns
16+
- Databases
17+
- Testing
18+
---
19+
120
<!doctype html>
221
<html>
322
<head>
23+
<meta charset="utf-8">
24+
<meta name="viewport" content="width=device-width">
425
<title>CoffeeScript Cookbook &raquo; {{ page.title }}</title>
5-
<link rel="stylesheet" href="/css/default.css" type="text/css">
26+
<link type="image/x-icon" rel="shortcut icon" href="/images/favicon.ico">
27+
<link rel="stylesheet" href="/css/style.css" type="text/css">
628
</head>
729
<body>
8-
<header>
9-
<h1><a href="/">CoffeeScript Cookbook</a></h1>
10-
<nav>
11-
<ul>
12-
<li><a href="/chapters">Chapter Index</a></li>
13-
<li><a href="/contributing">Contributing</a></li>
14-
<li><a href="/authors">Authors</a></li>
15-
<li><a href="/license">License</a></li>
16-
</ul>
17-
</nav>
18-
</header>
19-
<section class="content">
20-
<h2>{{ page.title }}</h2>
21-
{{ content }}
30+
31+
<section class="container">
32+
33+
<header class="header">
34+
<h1><a class="" href="/"><span class="entypo">&oacute;</span><span class="title ir">CoffeeScript Cookbook</span></a></h1>
35+
</header>
36+
37+
<section class="content">
38+
39+
<article class="content-block">
40+
<h2>{{ page.title }}</h2>
41+
{{ content }}
42+
</article>
43+
44+
<footer class="footer content-block">
45+
<p>Don't see the recipe you want? Add it yourself by reading the <a href="/contributing">Contributor's Guide</a>, or request it by adding it to <a href="/wanted-recipes">Wanted Recipes</a>.</p>
46+
<a href="/license"><img src="/images/cc_by_badge.png" /></a>
47+
</footer>
48+
49+
</section>
50+
2251
</section>
23-
<footer>
24-
<p>Don't see the recipe you want? Add it yourself by reading the <a href="/contributing">Contributor's Guide</a>, or request it by adding it to <a href="/wanted-recipes">Wanted Recipes</a>.</p>
25-
<a href="/license"><img src="/images/cc_by_badge.png" /></a>
26-
</footer>
52+
53+
<aside id="sidebar">
54+
55+
<section class="sidebar-block block-short">
56+
<nav class="navigation pages-nav home-nav">
57+
<h6><a class="nav-link" href="/"><span class="entypo">&oacute;</span>CoffeeScript Cookbook</a></h6>
58+
<small class="thin dimmed">(last updated 28 August, 2012)</small>
59+
</nav>
60+
</section>
61+
62+
<section class="sidebar-block">
63+
<nav class="navigation pages-nav">
64+
<ul class="plain-list inline-list">
65+
<li><a class="nav-link" href="/contributing"><span class="entypo">6</span>Contribute</a></li>
66+
<li><a class="nav-link" href="/authors"><span class="entypo">,</span>Authors</a></li>
67+
<li><a class="nav-link" href="/license"><span class="entypo">&copy;</span>License</a></li>
68+
</ul>
69+
</nav>
70+
</section>
71+
72+
<section class="sidebar-block">
73+
<h5 class="sidebar-title">Chapters Index</h5>
74+
<ol class="navigation chapters-list">
75+
{% for chapter in page.chapters %}
76+
{% capture url %}/chapters/{{ chapter | replace: ' ', '_' | downcase }}{% endcapture %}
77+
{% capture indexurl %}{{ url }}/index.html{% endcapture %}
78+
<li class="chapter">
79+
<div class="sidebar-subtitle"><strong><a class="chapter-title" href="{{ url }}">{{ chapter }}</a></strong></div>
80+
<ul class="pseudo-list recipes-list">
81+
{% for page in site.pages %}
82+
{% if page.url contains url %}
83+
{% unless page.url == indexurl %}
84+
<li class="list-item recipe"><a class="recipe-title" href="{{ page.url | replace: '.html', '' }}">{{ page.title }}</a></li>
85+
{% endunless %}
86+
{% endif %}
87+
{% endfor %}
88+
</ul>
89+
</li>
90+
{% endfor %}
91+
</ol>
92+
</section>
93+
94+
</aside>
95+
2796
</body>
2897
</html>
2998

_layouts/default.html

Lines changed: 85 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,95 @@
1+
---
2+
chapters:
3+
- Syntax
4+
- Classes and Objects
5+
- Strings
6+
- Arrays
7+
- Dates and Times
8+
- Math
9+
- Functions
10+
- Metaprogramming
11+
- jQuery
12+
- Ajax
13+
- Regular Expressions
14+
- Networking
15+
- Design Patterns
16+
- Databases
17+
- Testing
18+
---
19+
120
<!doctype html>
221
<html>
322
<head>
23+
<meta charset="utf-8">
24+
<meta name="viewport" content="width=device-width">
425
<title>CoffeeScript Cookbook &raquo; {{ page.title }}</title>
5-
<link rel="stylesheet" href="/css/default.css" type="text/css">
26+
<link type="image/x-icon" rel="shortcut icon" href="/images/favicon.ico">
27+
<link rel="stylesheet" href="/css/style.css" type="text/css">
628
</head>
729
<body>
8-
<header>
9-
<h1><a href="/">CoffeeScript Cookbook</a></h1>
10-
<nav>
11-
<ul>
12-
<li><a href="/chapters">Chapter Index</a></li>
13-
<li><a href="/contributing">Contributing</a></li>
14-
<li><a href="/authors">Authors</a></li>
15-
<li><a href="/license">License</a></li>
16-
</ul>
17-
</nav>
18-
</header>
19-
<section class="content">
20-
{{ content }}
30+
31+
<section class="container">
32+
33+
<header class="header">
34+
<h1><a class="" href="/"><span class="entypo">&oacute;</span><span class="title ir">CoffeeScript Cookbook</span></a></h1>
35+
</header>
36+
37+
<section class="content">
38+
39+
<article class="content-block">{{ content }}</article>
40+
41+
<footer class="footer content-block">
42+
<p>Don't see a recipe you want? See an entire missing chapter? Add it yourself by reading the <a href="/contributing">Contributor's Guide</a>, or request it by adding it to <a href="/wanted-recipes">Wanted Recipes</a>.</p>
43+
<a href="/license"><img src="/images/cc_by_badge.png" /></a>
44+
</footer>
45+
46+
</section>
47+
2148
</section>
22-
<footer>
23-
<p>Don't see a recipe you want? See an entire missing chapter? Add it yourself by reading the <a href="/contributing">Contributor's Guide</a>, or request it by adding it to <a href="/wanted-recipes">Wanted Recipes</a>.</p>
24-
<a href="/license"><img src="/images/cc_by_badge.png" /></a>
25-
</footer>
49+
50+
<aside id="sidebar">
51+
52+
<section class="sidebar-block block-short">
53+
<nav class="navigation pages-nav home-nav">
54+
<h6><a class="nav-link" href="/"><span class="entypo">&oacute;</span>CoffeeScript Cookbook</a></h6>
55+
<small class="thin dimmed">(last updated 28 August, 2012)</small>
56+
</nav>
57+
</section>
58+
59+
<section class="sidebar-block">
60+
<nav class="navigation pages-nav">
61+
<ul class="plain-list inline-list">
62+
<li><a class="nav-link" href="/contributing"><span class="entypo">6</span>Contribute</a></li>
63+
<li><a class="nav-link" href="/authors"><span class="entypo">,</span>Authors</a></li>
64+
<li><a class="nav-link" href="/license"><span class="entypo">&copy;</span>License</a></li>
65+
</ul>
66+
</nav>
67+
</section>
68+
69+
<section class="sidebar-block">
70+
<h5 class="sidebar-title">Chapters Index</h5>
71+
<ol class="navigation chapters-list">
72+
{% for chapter in page.chapters %}
73+
{% capture url %}/chapters/{{ chapter | replace: ' ', '_' | downcase }}{% endcapture %}
74+
{% capture indexurl %}{{ url }}/index.html{% endcapture %}
75+
<li class="chapter">
76+
<div class="sidebar-subtitle"><strong><a class="chapter-title" href="{{ url }}">{{ chapter }}</a></strong></div>
77+
<ul class="pseudo-list recipes-list">
78+
{% for page in site.pages %}
79+
{% if page.url contains url %}
80+
{% unless page.url == indexurl %}
81+
<li class="list-item recipe"><a class="recipe-title" href="{{ page.url | replace: '.html', '' }}">{{ page.title }}</a></li>
82+
{% endunless %}
83+
{% endif %}
84+
{% endfor %}
85+
</ul>
86+
</li>
87+
{% endfor %}
88+
</ol>
89+
</section>
90+
91+
</aside>
92+
2693
</body>
2794
</html>
2895

_layouts/recipe.html

Lines changed: 87 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,97 @@
1+
---
2+
chapters:
3+
- Syntax
4+
- Classes and Objects
5+
- Strings
6+
- Arrays
7+
- Dates and Times
8+
- Math
9+
- Functions
10+
- Metaprogramming
11+
- jQuery
12+
- Ajax
13+
- Regular Expressions
14+
- Networking
15+
- Design Patterns
16+
- Databases
17+
- Testing
18+
---
19+
120
<!doctype html>
221
<html>
322
<head>
23+
<meta charset="utf-8">
24+
<meta name="viewport" content="width=device-width">
425
<title>CoffeeScript Cookbook &raquo; {{ page.title }}</title>
5-
<link rel="stylesheet" href="/css/default.css" type="text/css">
26+
<link type="image/x-icon" rel="shortcut icon" href="/images/favicon.ico">
27+
<link rel="stylesheet" href="/css/style.css" type="text/css">
628
</head>
729
<body>
8-
<header>
9-
<h1><a href="/">CoffeeScript Cookbook</a></h1>
10-
<nav>
11-
<ol class="breadcrumbs">
12-
<li><a href="/">Home</a></li>
13-
<li><a href="/chapters/{{ page.chapter | replace: ' ', '_' | downcase }}">{{ page.chapter }}</a></li>
14-
<li>{{ page.title }}</li>
15-
</ol>
16-
</nav>
17-
</header>
18-
<section class="content">
19-
<h1>{{ page.title }}</h1>
20-
{{ content }}
30+
31+
<section class="container">
32+
33+
<header class="header">
34+
<h1><a class="" href="/"><span class="entypo">&oacute;</span><span class="title ir">CoffeeScript Cookbook</span></a></h1>
35+
</header>
36+
37+
<section class="content">
38+
39+
<article class="content-block recipe-content">
40+
<h1>{{ page.title }}</h1>
41+
{{ content }}
42+
</article>
43+
44+
<footer class="footer">
45+
<p>Is this recipe wrong, incomplete, or non idiomatic? Help fix it by reading the <a href="/contributing">Contributor's Guide</a>!</p>
46+
<a href="/license"><img src="/images/cc_by_badge.png" /></a>
47+
</footer>
48+
</section>
49+
2150
</section>
22-
<footer>
23-
<nav>
24-
<a href="/chapters">Chapter Index</a> |
25-
<a href="/contributing">Contributing</a> |
26-
<a href="/authors">Authors</a> |
27-
<a href="/license">License</a>
28-
</nav>
29-
<p>Is this recipe wrong, incomplete, or non idiomatic? Help fix it by reading the <a href="/contributing">Contributor's Guide</a>!</p>
30-
<a href="/license"><img src="/images/cc_by_badge.png" /></a>
31-
</footer>
51+
52+
<aside id="sidebar">
53+
54+
<section class="sidebar-block block-short">
55+
<nav class="navigation pages-nav home-nav">
56+
<h6><a class="nav-link" href="/"><span class="entypo">&oacute;</span>CoffeeScript Cookbook</a></h6>
57+
<small class="thin dimmed">(last updated 28 August, 2012)</small>
58+
</nav>
59+
</section>
60+
61+
<section class="sidebar-block">
62+
<nav class="navigation pages-nav">
63+
<ul class="plain-list inline-list">
64+
<li><a class="nav-link" href="/contributing"><span class="entypo">6</span>Contribute</a></li>
65+
<li><a class="nav-link" href="/authors"><span class="entypo">,</span>Authors</a></li>
66+
<li><a class="nav-link" href="/license"><span class="entypo">&copy;</span>License</a></li>
67+
</ul>
68+
</nav>
69+
</section>
70+
71+
<section class="sidebar-block">
72+
<h5 class="sidebar-title">Chapters Index</h5>
73+
<ol class="navigation chapters-list">
74+
{% for chapter in page.chapters %}
75+
{% capture url %}/chapters/{{ chapter | replace: ' ', '_' | downcase }}{% endcapture %}
76+
{% capture indexurl %}{{ url }}/index.html{% endcapture %}
77+
<li class="chapter">
78+
<div class="sidebar-subtitle"><strong><a class="chapter-title" href="{{ url }}">{{ chapter }}</a></strong></div>
79+
<ul class="pseudo-list recipes-list">
80+
{% for page in site.pages %}
81+
{% if page.url contains url %}
82+
{% unless page.url == indexurl %}
83+
<li class="list-item recipe"><a class="recipe-title" href="{{ page.url | replace: '.html', '' }}">{{ page.title }}</a></li>
84+
{% endunless %}
85+
{% endif %}
86+
{% endfor %}
87+
</ul>
88+
</li>
89+
{% endfor %}
90+
</ol>
91+
</section>
92+
93+
</aside>
94+
3295
</body>
3396
</html>
3497

authors.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,5 @@ The following people are totally rad and awesome because they have contributed r
3737

3838
The following people are astonishingly rad and awesome because they did great design for the site!
3939

40+
* [Amsul](http://github.com/amsul) [email protected]
4041
* ...You! Check out the [contributing](/contributing) section and get cracking!

0 commit comments

Comments
 (0)