{{ page.title }}
diff --git a/_layouts/default.html b/_layouts/default.html index abbd566..d4e3a13 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -7,10 +7,14 @@CoffeeScript Cookbook
- Chapter Index | - Contributing | - Authors | - License +CoffeeScript Cookbook
-
+ {% for chapter in page.chapters %}
+ {% capture url %}/chapters/{{ chapter | replace: ' ', '_' | downcase }}{% endcapture %}
+ {% capture indexurl %}{{ url }}/index.html{% endcapture %}
-
-
+
{{ chapter }}
--
- {% for page in site.pages %}
- {% if page.url contains url %}
- {% unless page.url == indexurl %}
-
- {{ page.title }} - {% endunless %} - {% endif %} - {% endfor %} -
-
+ {% for page in site.pages %}
+ {% if page.url contains url %}
+ {% unless page.url == indexurl %}
+
- {{ page.title }} + {% endunless %} + {% endif %} + {% endfor %} +
-{% endfor %}
+ {% endfor %}
+
\ No newline at end of file
diff --git a/css/default.css b/css/default.css
index 0c2d2f9..fb906a4 100644
--- a/css/default.css
+++ b/css/default.css
@@ -61,6 +61,36 @@ ul, ol {
margin-bottom: 22px;
}
+nav ul {
+ list-style:none;
+}
+
+nav ul li {
+ border-left:1px solid rgba(0, 0, 0, 0.2);
+ display:inline-block;
+ padding:0 10px;
+}
+
+nav ul li:first-child {
+ border:none;
+}
+
+nav ol {
+ list-style:none;
+}
+
+nav ol li {
+ display:inline-block;
+}
+
+nav ol.breadcrumbs li:before {
+ content: '\000bb\000a0'; /* Insert » between list items. */
+}
+
+nav ol.breadcrumbs li:first-child:before {
+ content: '';
+}
+
/* Typography */
body {
diff --git a/index.html b/index.html
index d25f923..247136b 100644
--- a/index.html
+++ b/index.html
@@ -21,20 +21,24 @@ -
+
{{ chapter }}
--
- {% for page in site.pages %}
- {% if page.url contains url %}
- {% unless page.url == indexurl %}
-
- {{ page.title }} - {% endunless %} - {% endif %} - {% endfor %} -
-
+ {% for page in site.pages %}
+ {% if page.url contains url %}
+ {% unless page.url == indexurl %}
+
- {{ page.title }} + {% endunless %} + {% endif %} + {% endfor %} +
-{% endfor %}
+ {% endfor %}
+
\ No newline at end of file
{{ chapter }}
+Welcome
Welcome to the CoffeeScript Cookbook! CoffeeScript recipes for the community by the community. Head over to the Contributing page and see what you can do to help out!
-{% for chapter in page.chapters %} - {% capture url %}/chapters/{{ chapter | replace: ' ', '_' | downcase }}{% endcapture %} - {% capture indexurl %}{{ url }}/index.html{% endcapture %} +-
+ {% for chapter in page.chapters %}
+ {% capture url %}/chapters/{{ chapter | replace: ' ', '_' | downcase }}{% endcapture %}
+ {% capture indexurl %}{{ url }}/index.html{% endcapture %}
-