Support index.html indexes in content directory
authorNoah Campbell <noahcampbell@gmail.com>
Wed, 25 Sep 2013 04:24:49 +0000 (21:24 -0700)
committerNoah Campbell <noahcampbell@gmail.com>
Wed, 25 Sep 2013 04:27:25 +0000 (21:27 -0700)
commitdb50154e75cfb1100651b7521370f54a0695872e
tree51ada9876f7246cbd5608524d7a2d41dea570697
parent4250bf8e3052da8178d5406390c4b455e5592148
Support index.html indexes in content directory

If a file named index.html exists in a directory, or root, it will be
rendered as if ugly urls are turned on.  This allows for top level
content to not need a supporting layout file and content in content.
This change should not affect anyone who is using the perscribed way.

I also cleaned up a bunch of one off functions in site.go.
hugolib/page.go
hugolib/site.go
target/file.go
target/file_test.go