http://nanoc.ws/docs/basics/#routing-the-item-representations - documentation on simple routing
In your Rules file, include:
route ''/css/stylesheet/' do
'/css/style.css'
end
route '/' do
'/index.html'
end
Some things to note:
1. All item identifiers are wrapped in forward slashes ('/'), and have the extension omitted.
2. the identifier for the file 'index.html' at the *root* of the contents/ folder is just '/', not '/index/'. This is to allow you to write routing rules for, say, '/blog/' (blog.html) that automatically put the item in a folder of the same name and name the item 'index.html', which is the clean/standard way of naming markup files. See:
route '*' do
if item.binary?
# Write item with identifier /foo/ to /foo.ext
item.identifier.chop + '.' + item[:extension]
else
# every /item.html now goes to /item/index.html for clean URLs
item.identifier + 'index.html'
end
end