From 50515c7deeefe5ac55d390740d0961f953ac9d7f Mon Sep 17 00:00:00 2001 From: Mike Moore Date: Wed, 11 Jan 2017 09:30:37 -0700 Subject: [PATCH] Replace page data with site data --- _data/chapters.yml | 16 ++++++++++++++++ _layouts/chapter.html | 22 +--------------------- _layouts/default.html | 22 +--------------------- _layouts/recipe.html | 22 +--------------------- chapters/index.html | 20 ++------------------ 5 files changed, 21 insertions(+), 81 deletions(-) create mode 100644 _data/chapters.yml diff --git a/_data/chapters.yml b/_data/chapters.yml new file mode 100644 index 0000000..9c47918 --- /dev/null +++ b/_data/chapters.yml @@ -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 diff --git a/_layouts/chapter.html b/_layouts/chapter.html index 3023ec9..3daeeed 100644 --- a/_layouts/chapter.html +++ b/_layouts/chapter.html @@ -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 ---- - @@ -72,7 +53,7 @@
ó