Skip to content

Commit aab856d

Browse files
committed
Separate presentation from content a bit in the recipe header.
1 parent a18d814 commit aab856d

File tree

2 files changed

+22
-4
lines changed

2 files changed

+22
-4
lines changed

_layouts/recipe.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@
55
<link rel="stylesheet" href="/css/default.css" type="text/css">
66
</head>
77
<body>
8-
<header>
8+
<header>
99
<h1><a href="/">CoffeeScript Cookbook</a></h1>
1010
<nav>
11-
<a href="/">Home</a> &raquo;
12-
<a href="/chapters/{{ page.chapter | replace: ' ', '_' | downcase }}">{{ page.chapter }}</a> &raquo;
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>
1416
</nav>
1517
</header>
1618
<section class="content">

css/default.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,22 @@ nav ul li:first-child {
7575
border:none;
7676
}
7777

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 &raquo;&nbsp; between list items. */
88+
}
89+
90+
nav ol.breadcrumbs li:first-child:before {
91+
content: '';
92+
}
93+
7894
/* Typography */
7995

8096
body {

0 commit comments

Comments
 (0)