/
index.html
44 lines (38 loc) · 1.07 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
---
layout: default
title: Home
chapters:
- Syntax
- Classes and Objects
- Strings
- Arrays
- Dates and Times
- Math
- Functions
- Metaprogramming
- jQuery
- Regular Expressions
- Networking
- Design Patterns
- Databases
---
<h1>Welcome</h1>
<p>Welcome to the CoffeeScript Cookbook! CoffeeScript recipes for the community <em>by</em> the community. Head over to the <a href="/contributing">Contributing</a> page and see what you can do to help out!</p>
<ol id="chapters">
{% for chapter in page.chapters %}
{% capture url %}/chapters/{{ chapter | replace: ' ', '_' | downcase }}{% endcapture %}
{% capture indexurl %}{{ url }}/index.html{% endcapture %}
<li class="chapter">
<h2><a href="{{ url }}">{{ chapter }}</a></h2>
<ul id="recipes">
{% for page in site.pages %}
{% if page.url contains url %}
{% unless page.url == indexurl %}
<li class="recipe"><a href="{{ page.url | replace: '.html', '' }}">{{ page.title }}</a></li>
{% endunless %}
{% endif %}
{% endfor %}
</ul>
</li>
{% endfor %}
</ul>