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
16 changes: 16 additions & 0 deletions _data/chapters.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
- Syntax
- Classes and Objects
- Strings
- Arrays
- Dates and Times
- Math
- Functions
- Metaprogramming
- jQuery
- Ajax
- Regular Expressions
- Networking
- Design Patterns
- Databases
- Testing
22 changes: 1 addition & 21 deletions _layouts/chapter.html
Original file line number Diff line number Diff line change
@@ -1,22 +1,3 @@
---
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>
Expand Down Expand Up @@ -72,7 +53,7 @@ <h6><a class="nav-link" href="{{ site.baseurl }}/"><span class="entypo">&oacute;
<section class="sidebar-block">
<h5 class="sidebar-title">Chapters Index</h5>
<ol class="navigation chapters-list">
{% for chapter in page.chapters %}
{% for chapter in site.data.chapters %}
{% capture url %}/chapters/{{ chapter | replace: ' ', '_' | downcase }}{% endcapture %}
{% capture indexurl %}{{ url }}/index.html{% endcapture %}
<li class="chapter">
Expand All @@ -97,4 +78,3 @@ <h5 class="sidebar-title">Chapters Index</h5>

</body>
</html>

22 changes: 1 addition & 21 deletions _layouts/default.html
Original file line number Diff line number Diff line change
@@ -1,22 +1,3 @@
---
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>
Expand Down Expand Up @@ -69,7 +50,7 @@ <h6><a class="nav-link" href="{{ site.baseurl }}/"><span class="entypo">&oacute;
<section class="sidebar-block">
<h5 class="sidebar-title">Chapters Index</h5>
<ol class="navigation chapters-list">
{% for chapter in page.chapters %}
{% for chapter in site.data.chapters %}
{% capture url %}/chapters/{{ chapter | replace: ' ', '_' | downcase }}{% endcapture %}
{% capture indexurl %}{{ url }}/index.html{% endcapture %}
<li class="chapter">
Expand All @@ -94,4 +75,3 @@ <h5 class="sidebar-title">Chapters Index</h5>

</body>
</html>

22 changes: 1 addition & 21 deletions _layouts/recipe.html
Original file line number Diff line number Diff line change
@@ -1,22 +1,3 @@
---
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>
Expand Down Expand Up @@ -71,7 +52,7 @@ <h6><a class="nav-link" href="{{ site.baseurl }}/"><span class="entypo">&oacute;
<section class="sidebar-block">
<h5 class="sidebar-title">Chapters Index</h5>
<ol class="navigation chapters-list">
{% for chapter in page.chapters %}
{% for chapter in site.data.chapters %}
{% capture url %}/chapters/{{ chapter | replace: ' ', '_' | downcase }}{% endcapture %}
{% capture indexurl %}{{ url }}/index.html{% endcapture %}
<li class="chapter">
Expand All @@ -96,4 +77,3 @@ <h5 class="sidebar-title">Chapters Index</h5>

</body>
</html>

20 changes: 2 additions & 18 deletions chapters/index.html
Original file line number Diff line number Diff line change
@@ -1,30 +1,14 @@
---
layout: default
title: Cookbook
chapters:
- Syntax
- Classes and Objects
- Strings
- Arrays
- Dates and Times
- Math
- Functions
- Metaprogramming
- jQuery
- Ajax
- Regular Expressions
- Networking
- Design Patterns
- Databases
- Testing
---

<article class="content-block">

<h5 class="sidebar-title">Chapters</h5>

<ol class="navigation chapters-list">
{% for chapter in page.chapters %}
{% for chapter in site.data.chapters %}
{% capture url %}/chapters/{{ chapter | replace: ' ', '_' | downcase }}{% endcapture %}
{% capture indexurl %}{{ url }}/index.html{% endcapture %}
<li class="chapter">
Expand All @@ -42,4 +26,4 @@ <h4><a class="chapter-title" href="{{ site.baseurl }}{{ url }}">{{ chapter }}</a
{% endfor %}
</ol>

</article>
</article>