Introduce HugoSites type
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 26 Jul 2016 08:24:27 +0000 (10:24 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 6 Sep 2016 15:32:16 +0000 (18:32 +0300)
commit75dd596e6c38466fcb97a8b9dc9eb20fc2fb7fd6
tree37f43d8af433033996fbae9d2b3914888144c60a
parent618948e4a83665f8355b01d8a3f7a7186e6bd3eb
Introduce HugoSites type

And a Hugo global variable which contains the site under build.

This is really needed to get some level of control of the "multiple languages" in play.

There are still work related to this scattered around, but that will come.

With this commit, the multilingual feature is starting to work.
16 files changed:
commands/benchmark.go
commands/hugo.go
commands/multilingual.go
hugolib/datafiles_test.go
hugolib/handler_test.go
hugolib/menu_test.go
hugolib/multilingual.go
hugolib/pagination_test.go
hugolib/robotstxt_test.go
hugolib/rss_test.go
hugolib/shortcode_test.go
hugolib/site.go
hugolib/site_test.go
hugolib/site_url_test.go
hugolib/siteinfo_test.go
hugolib/sitemap_test.go