diff --git a/_layouts/chapter.html b/_layouts/chapter.html index 39349c4..ae1d592 100644 --- a/_layouts/chapter.html +++ b/_layouts/chapter.html @@ -7,10 +7,14 @@

CoffeeScript Cookbook

- Chapter Index | - Contributing | - Authors | - License +

{{ 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 +
{{ content }} diff --git a/_layouts/recipe.html b/_layouts/recipe.html index 7405cc7..22b23c1 100644 --- a/_layouts/recipe.html +++ b/_layouts/recipe.html @@ -5,12 +5,14 @@ -
+

CoffeeScript Cookbook

diff --git a/chapters/index.html b/chapters/index.html index 53face9..dc0ad39 100644 --- a/chapters/index.html +++ b/chapters/index.html @@ -17,20 +17,24 @@ - Databases --- -{% 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 %} -

    {{ chapter }}

    +
  1. +

    {{ 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 %} +
    +
  2. -{% 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 @@

    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 %} -

      {{ chapter }}

      +
    1. +

      {{ 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 %} +
      +
    2. -{% endfor %} + {% endfor %} + \ No newline at end of file