Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
107 changes: 88 additions & 19 deletions _layouts/chapter.html
Original file line number Diff line number Diff line change
@@ -1,29 +1,98 @@
---
chapters:
- Syntax
- Classes and Objects
- Strings
- Arrays
- Dates and Times
- Math
- Functions
- Metaprogramming
- jQuery
- Ajax
- Regular Expressions
- Networking
- Design Patterns
- Databases
- Testing
---

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>CoffeeScript Cookbook &raquo; {{ page.title }}</title>
<link rel="stylesheet" href="/css/default.css" type="text/css">
<link type="image/x-icon" rel="shortcut icon" href="/images/favicon.ico">
<link rel="stylesheet" href="/css/style.css" type="text/css">
</head>
<body>
<header>
<h1><a href="/">CoffeeScript Cookbook</a></h1>
<nav>
<ul>
<li><a href="/chapters">Chapter Index</a></li>
<li><a href="/contributing">Contributing</a></li>
<li><a href="/authors">Authors</a></li>
<li><a href="/license">License</a></li>
</ul>
</nav>
</header>
<section class="content">
<h2>{{ page.title }}</h2>
{{ content }}

<section class="container">

<header class="header">
<h1><a class="" href="/"><span class="entypo">&oacute;</span><span class="title ir">CoffeeScript Cookbook</span></a></h1>
</header>

<section class="content">

<article class="content-block">
<h2>{{ page.title }}</h2>
{{ content }}
</article>

<footer class="footer content-block">
<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>
<a href="/license"><img src="/images/cc_by_badge.png" /></a>
</footer>

</section>

</section>
<footer>
<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>
<a href="/license"><img src="/images/cc_by_badge.png" /></a>
</footer>

<aside id="sidebar">

<section class="sidebar-block block-short">
<nav class="navigation pages-nav home-nav">
<h6><a class="nav-link" href="/"><span class="entypo">&oacute;</span>CoffeeScript Cookbook</a></h6>
<small class="thin dimmed">(last updated 28 August, 2012)</small>
</nav>
</section>

<section class="sidebar-block">
<nav class="navigation pages-nav">
<ul class="plain-list inline-list">
<li><a class="nav-link" href="/contributing"><span class="entypo">6</span>Contribute</a></li>
<li><a class="nav-link" href="/authors"><span class="entypo">,</span>Authors</a></li>
<li><a class="nav-link" href="/license"><span class="entypo">&copy;</span>License</a></li>
</ul>
</nav>
</section>

<section class="sidebar-block">
<h5 class="sidebar-title">Chapters Index</h5>
<ol class="navigation chapters-list">
{% for chapter in page.chapters %}
{% capture url %}/chapters/{{ chapter | replace: ' ', '_' | downcase }}{% endcapture %}
{% capture indexurl %}{{ url }}/index.html{% endcapture %}
<li class="chapter">
<div class="sidebar-subtitle"><strong><a class="chapter-title" href="{{ url }}">{{ chapter }}</a></strong></div>
<ul class="pseudo-list recipes-list">
{% for page in site.pages %}
{% if page.url contains url %}
{% unless page.url == indexurl %}
<li class="list-item recipe"><a class="recipe-title" href="{{ page.url | replace: '.html', '' }}">{{ page.title }}</a></li>
{% endunless %}
{% endif %}
{% endfor %}
</ul>
</li>
{% endfor %}
</ol>
</section>

</aside>

</body>
</html>

103 changes: 85 additions & 18 deletions _layouts/default.html
Original file line number Diff line number Diff line change
@@ -1,28 +1,95 @@
---
chapters:
- Syntax
- Classes and Objects
- Strings
- Arrays
- Dates and Times
- Math
- Functions
- Metaprogramming
- jQuery
- Ajax
- Regular Expressions
- Networking
- Design Patterns
- Databases
- Testing
---

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>CoffeeScript Cookbook &raquo; {{ page.title }}</title>
<link rel="stylesheet" href="/css/default.css" type="text/css">
<link type="image/x-icon" rel="shortcut icon" href="/images/favicon.ico">
<link rel="stylesheet" href="/css/style.css" type="text/css">
</head>
<body>
<header>
<h1><a href="/">CoffeeScript Cookbook</a></h1>
<nav>
<ul>
<li><a href="/chapters">Chapter Index</a></li>
<li><a href="/contributing">Contributing</a></li>
<li><a href="/authors">Authors</a></li>
<li><a href="/license">License</a></li>
</ul>
</nav>
</header>
<section class="content">
{{ content }}

<section class="container">

<header class="header">
<h1><a class="" href="/"><span class="entypo">&oacute;</span><span class="title ir">CoffeeScript Cookbook</span></a></h1>
</header>

<section class="content">

<article class="content-block">{{ content }}</article>

<footer class="footer content-block">
<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>
<a href="/license"><img src="/images/cc_by_badge.png" /></a>
</footer>

</section>

</section>
<footer>
<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>
<a href="/license"><img src="/images/cc_by_badge.png" /></a>
</footer>

<aside id="sidebar">

<section class="sidebar-block block-short">
<nav class="navigation pages-nav home-nav">
<h6><a class="nav-link" href="/"><span class="entypo">&oacute;</span>CoffeeScript Cookbook</a></h6>
<small class="thin dimmed">(last updated 28 August, 2012)</small>
</nav>
</section>

<section class="sidebar-block">
<nav class="navigation pages-nav">
<ul class="plain-list inline-list">
<li><a class="nav-link" href="/contributing"><span class="entypo">6</span>Contribute</a></li>
<li><a class="nav-link" href="/authors"><span class="entypo">,</span>Authors</a></li>
<li><a class="nav-link" href="/license"><span class="entypo">&copy;</span>License</a></li>
</ul>
</nav>
</section>

<section class="sidebar-block">
<h5 class="sidebar-title">Chapters Index</h5>
<ol class="navigation chapters-list">
{% for chapter in page.chapters %}
{% capture url %}/chapters/{{ chapter | replace: ' ', '_' | downcase }}{% endcapture %}
{% capture indexurl %}{{ url }}/index.html{% endcapture %}
<li class="chapter">
<div class="sidebar-subtitle"><strong><a class="chapter-title" href="{{ url }}">{{ chapter }}</a></strong></div>
<ul class="pseudo-list recipes-list">
{% for page in site.pages %}
{% if page.url contains url %}
{% unless page.url == indexurl %}
<li class="list-item recipe"><a class="recipe-title" href="{{ page.url | replace: '.html', '' }}">{{ page.title }}</a></li>
{% endunless %}
{% endif %}
{% endfor %}
</ul>
</li>
{% endfor %}
</ol>
</section>

</aside>

</body>
</html>

111 changes: 87 additions & 24 deletions _layouts/recipe.html
Original file line number Diff line number Diff line change
@@ -1,34 +1,97 @@
---
chapters:
- Syntax
- Classes and Objects
- Strings
- Arrays
- Dates and Times
- Math
- Functions
- Metaprogramming
- jQuery
- Ajax
- Regular Expressions
- Networking
- Design Patterns
- Databases
- Testing
---

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>CoffeeScript Cookbook &raquo; {{ page.title }}</title>
<link rel="stylesheet" href="/css/default.css" type="text/css">
<link type="image/x-icon" rel="shortcut icon" href="/images/favicon.ico">
<link rel="stylesheet" href="/css/style.css" type="text/css">
</head>
<body>
<header>
<h1><a href="/">CoffeeScript Cookbook</a></h1>
<nav>
<ol class="breadcrumbs">
<li><a href="/">Home</a></li>
<li><a href="/chapters/{{ page.chapter | replace: ' ', '_' | downcase }}">{{ page.chapter }}</a></li>
<li>{{ page.title }}</li>
</ol>
</nav>
</header>
<section class="content">
<h1>{{ page.title }}</h1>
{{ content }}

<section class="container">

<header class="header">
<h1><a class="" href="/"><span class="entypo">&oacute;</span><span class="title ir">CoffeeScript Cookbook</span></a></h1>
</header>

<section class="content">

<article class="content-block recipe-content">
<h1>{{ page.title }}</h1>
{{ content }}
</article>

<footer class="footer">
<p>Is this recipe wrong, incomplete, or non idiomatic? Help fix it by reading the <a href="/contributing">Contributor's Guide</a>!</p>
<a href="/license"><img src="/images/cc_by_badge.png" /></a>
</footer>
</section>

</section>
<footer>
<nav>
<a href="/chapters">Chapter Index</a> |
<a href="/contributing">Contributing</a> |
<a href="/authors">Authors</a> |
<a href="/license">License</a>
</nav>
<p>Is this recipe wrong, incomplete, or non idiomatic? Help fix it by reading the <a href="/contributing">Contributor's Guide</a>!</p>
<a href="/license"><img src="/images/cc_by_badge.png" /></a>
</footer>

<aside id="sidebar">

<section class="sidebar-block block-short">
<nav class="navigation pages-nav home-nav">
<h6><a class="nav-link" href="/"><span class="entypo">&oacute;</span>CoffeeScript Cookbook</a></h6>
<small class="thin dimmed">(last updated 28 August, 2012)</small>
</nav>
</section>

<section class="sidebar-block">
<nav class="navigation pages-nav">
<ul class="plain-list inline-list">
<li><a class="nav-link" href="/contributing"><span class="entypo">6</span>Contribute</a></li>
<li><a class="nav-link" href="/authors"><span class="entypo">,</span>Authors</a></li>
<li><a class="nav-link" href="/license"><span class="entypo">&copy;</span>License</a></li>
</ul>
</nav>
</section>

<section class="sidebar-block">
<h5 class="sidebar-title">Chapters Index</h5>
<ol class="navigation chapters-list">
{% for chapter in page.chapters %}
{% capture url %}/chapters/{{ chapter | replace: ' ', '_' | downcase }}{% endcapture %}
{% capture indexurl %}{{ url }}/index.html{% endcapture %}
<li class="chapter">
<div class="sidebar-subtitle"><strong><a class="chapter-title" href="{{ url }}">{{ chapter }}</a></strong></div>
<ul class="pseudo-list recipes-list">
{% for page in site.pages %}
{% if page.url contains url %}
{% unless page.url == indexurl %}
<li class="list-item recipe"><a class="recipe-title" href="{{ page.url | replace: '.html', '' }}">{{ page.title }}</a></li>
{% endunless %}
{% endif %}
{% endfor %}
</ul>
</li>
{% endfor %}
</ol>
</section>

</aside>

</body>
</html>

1 change: 1 addition & 0 deletions authors.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,5 @@ The following people are totally rad and awesome because they have contributed r

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

* [Amsul](http://github.com/amsul) reach@amsul.ca
* ...You! Check out the [contributing](/contributing) section and get cracking!
Loading