Skip to content

Commit 1c0ab03

Browse files
author
Rebecca Murphey
committed
loading stylesheets
1 parent a849a88 commit 1c0ab03

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

Rules

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,23 @@
1010
# item, use the pattern “/about/*/”; “/about/*” will also select the parent,
1111
# because “*” matches zero or more characters.
1212

13-
compile '/stylesheet/' do
14-
# don’t filter or layout
13+
# compile '/assets/*/' do
14+
# nil
15+
# end
16+
17+
compile '/assets/*/' do
18+
nil
19+
end
20+
21+
route '/assets/*/' do
22+
item.identifier.chop + '.' + item[:extension]
1523
end
1624

1725
compile '*' do
1826
filter :kramdown
1927
layout 'default'
2028
end
2129

22-
route '/stylesheet/' do
23-
'/style.css'
24-
end
25-
2630
route '*' do
2731
item.identifier + 'index.html'
2832
end
File renamed without changes.

layouts/default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="utf-8">
55
<title>A Brand New nanoc Site - <%= @item[:title] %></title>
6-
<link rel="stylesheet" type="text/css" href="style.css" media="screen">
6+
<link rel="stylesheet" type="text/css" href="/assets/stylesheet.css" media="screen">
77
<meta name="generator" content="nanoc 3.1.6">
88
</head>
99
<body>

0 commit comments

Comments
 (0)