> Question: why does my html pages in /content compile into directories
> containing an index.html file (except for my index.html file)?
>
> Example:
> /content/customer_service.html # compiles into => /output/
> customer_service/index.html
Hi,
The reason why nanoc creates directories with "index.html" files by
default is because it results in pretty URLs. For example, my about
page is at http://stoneship.org/about/, and not at, for example, http://stoneship.org/about.html
, which is harder to remember and doesn't look as pretty.
You can customize this behaviour, though. You probably already have a
routing rule for '*' that looks like
route '*' do
item.identifier + 'index.html'
end
and therefore turns an item with identfier "/foo/bar/" into a path "/
foo/bar/index.html". If you want to make it output "/foo/bar.html"
instead, you can change the route to something like
route '*' do
item.identifier.chop + '.html'
end
Hope this helps!
Regards,
Denis
--
Denis Defreyne
denis.d...@stoneship.org
> Anymore example sites out there besides stoneship, myst online and
> h3rald?
Well, there is the nanoc site itself too, of course: <http://projects.stoneship.org/hg/sites-nanoc/
>. No other example sites, but I think four is already quite a bit. :)