File tree Expand file tree Collapse file tree 6 files changed +88
-40
lines changed Expand file tree Collapse file tree 6 files changed +88
-40
lines changed Original file line number Diff line number Diff line change 7
7
< body >
8
8
< header >
9
9
< h1 > < a href ="/ "> CoffeeScript Cookbook</ a > </ h1 >
10
- < a href ="/chapters "> Chapter Index</ a > |
11
- < a href ="/contributing "> Contributing</ a > |
12
- < a href ="/authors "> Authors</ a > |
13
- < a href ="/license "> License</ a >
10
+ < nav >
11
+ < ul >
12
+ < li > < a href ="/chapters "> Chapter Index</ a > </ li >
13
+ < li > < a href ="/contributing "> Contributing</ a > </ li >
14
+ < li > < a href ="/authors "> Authors</ a > </ li >
15
+ < li > < a href ="/license "> License</ a > </ li >
16
+ </ ul >
17
+ </ nav >
14
18
</ header >
15
19
< section class ="content ">
16
20
< h2 > {{ page.title }}</ h2 >
Original file line number Diff line number Diff line change 7
7
< body >
8
8
< header >
9
9
< h1 > < a href ="/ "> CoffeeScript Cookbook</ a > </ h1 >
10
- < a href ="/chapters "> Chapter Index</ a > |
11
- < a href ="/contributing "> Contributing</ a > |
12
- < a href ="/authors "> Authors</ a > |
13
- < a href ="/license "> License</ a >
10
+ < nav >
11
+ < ul >
12
+ < li > < a href ="/chapters "> Chapter Index</ a > </ li >
13
+ < li > < a href ="/contributing "> Contributing</ a > </ li >
14
+ < li > < a href ="/authors "> Authors</ a > </ li >
15
+ < li > < a href ="/license "> License</ a > </ li >
16
+ </ ul >
17
+ </ nav >
14
18
</ header >
15
19
< section class ="content ">
16
20
{{ content }}
Original file line number Diff line number Diff line change 5
5
< link rel ="stylesheet " href ="/css/default.css " type ="text/css ">
6
6
</ head >
7
7
< body >
8
- < header >
8
+ < header >
9
9
< h1 > < a href ="/ "> CoffeeScript Cookbook</ a > </ h1 >
10
10
< nav >
11
- < a href ="/ "> Home</ a > »
12
- < a href ="/chapters/{{ page.chapter | replace: ' ', '_' | downcase }} "> {{ page.chapter }}</ a > »
13
- {{ page.title }}
11
+ < ol class ="breadcrumbs ">
12
+ < li > < a href ="/ "> Home</ a > </ li >
13
+ < li > < a href ="/chapters/{{ page.chapter | replace: ' ', '_' | downcase }} "> {{ page.chapter }}</ a > </ li >
14
+ < li > {{ page.title }}</ li >
15
+ </ ol >
14
16
</ nav >
15
17
</ header >
16
18
< section class ="content ">
Original file line number Diff line number Diff line change 17
17
- Databases
18
18
---
19
19
20
- {% for chapter in page.chapters %}
21
- {% capture url %}/chapters/{{ chapter | replace: ' ', '_' | downcase }}{% endcapture %}
22
- {% capture indexurl %}{{ url }}/index.html{% endcapture %}
20
+ < ol id ="chapters ">
21
+ {% for chapter in page.chapters %}
22
+ {% capture url %}/chapters/{{ chapter | replace: ' ', '_' | downcase }}{% endcapture %}
23
+ {% capture indexurl %}{{ url }}/index.html{% endcapture %}
23
24
24
- < h2 > < a href ="{{ url }} "> {{ chapter }}</ a > </ h2 >
25
+ < li class ="chapter ">
26
+ < h2 > < a href ="{{ url }} "> {{ chapter }}</ a > </ h2 >
25
27
26
- < ul >
27
- {% for page in site.pages %}
28
- {% if page.url contains url %}
29
- {% unless page.url == indexurl %}
30
- < li > < a href ="{{ page.url | replace: '.html', '' }} "> {{ page.title }}</ a > </ li >
31
- {% endunless %}
32
- {% endif %}
33
- {% endfor %}
34
- </ ul >
28
+ < ul id ="recipes ">
29
+ {% for page in site.pages %}
30
+ {% if page.url contains url %}
31
+ {% unless page.url == indexurl %}
32
+ < li class ="recipe "> < a href ="{{ page.url | replace: '.html', '' }} "> {{ page.title }}</ a > </ li >
33
+ {% endunless %}
34
+ {% endif %}
35
+ {% endfor %}
36
+ </ ul >
37
+ </ li >
35
38
36
- {% endfor %}
39
+ {% endfor %}
40
+ </ ul >
Original file line number Diff line number Diff line change @@ -61,6 +61,36 @@ ul, ol {
61
61
margin-bottom : 22px ;
62
62
}
63
63
64
+ nav ul {
65
+ list-style : none;
66
+ }
67
+
68
+ nav ul li {
69
+ border-left : 1px solid rgba (0 , 0 , 0 , 0.2 );
70
+ display : inline-block;
71
+ padding : 0 10px ;
72
+ }
73
+
74
+ nav ul li : first-child {
75
+ border : none;
76
+ }
77
+
78
+ nav ol {
79
+ list-style : none;
80
+ }
81
+
82
+ nav ol li {
83
+ display : inline-block;
84
+ }
85
+
86
+ nav ol .breadcrumbs li : before {
87
+ content : '\000bb\000a0' ; /* Insert » between list items. */
88
+ }
89
+
90
+ nav ol .breadcrumbs li : first-child : before {
91
+ content : '' ;
92
+ }
93
+
64
94
/* Typography */
65
95
66
96
body {
Original file line number Diff line number Diff line change @@ -21,20 +21,24 @@ <h1>Welcome</h1>
21
21
22
22
< 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 >
23
23
24
- {% for chapter in page.chapters %}
25
- {% capture url %}/chapters/{{ chapter | replace: ' ', '_' | downcase }}{% endcapture %}
26
- {% capture indexurl %}{{ url }}/index.html{% endcapture %}
24
+ < ol id ="chapters ">
25
+ {% for chapter in page.chapters %}
26
+ {% capture url %}/chapters/{{ chapter | replace: ' ', '_' | downcase }}{% endcapture %}
27
+ {% capture indexurl %}{{ url }}/index.html{% endcapture %}
27
28
28
- < h2 > < a href ="{{ url }} "> {{ chapter }}</ a > </ h2 >
29
+ < li class ="chapter ">
30
+ < h2 > < a href ="{{ url }} "> {{ chapter }}</ a > </ h2 >
29
31
30
- < ul >
31
- {% for page in site.pages %}
32
- {% if page.url contains url %}
33
- {% unless page.url == indexurl %}
34
- < li > < a href ="{{ page.url | replace: '.html', '' }} "> {{ page.title }}</ a > </ li >
35
- {% endunless %}
36
- {% endif %}
37
- {% endfor %}
38
- </ ul >
32
+ < ul id ="recipes ">
33
+ {% for page in site.pages %}
34
+ {% if page.url contains url %}
35
+ {% unless page.url == indexurl %}
36
+ < li class ="recipe "> < a href ="{{ page.url | replace: '.html', '' }} "> {{ page.title }}</ a > </ li >
37
+ {% endunless %}
38
+ {% endif %}
39
+ {% endfor %}
40
+ </ ul >
41
+ </ li >
39
42
40
- {% endfor %}
43
+ {% endfor %}
44
+ </ ul >
You can’t perform that action at this time.
0 commit comments