hugo/source
Bjørn Erik Pedersen 60dfb9a6e0 Add support for multiple staticDirs
This commit adds support for multiple statDirs both on the global and language level.

A simple `config.toml` example:

```bash
staticDir = ["static1", "static2"]
[languages]
[languages.no]
staticDir = ["staticDir_override", "static_no"]
baseURL = "https://example.no"
languageName = "Norsk"
weight = 1
title = "På norsk"

[languages.en]
staticDir2 = "static_en"
baseURL = "https://example.com"
languageName = "English"
weight = 2
title = "In English"
```

In the above, with no theme used:

the English site will get its static files as a union of "static1", "static2" and "static_en". On file duplicates, the right-most version will win.
the Norwegian site will get its static files as a union of "staticDir_override" and "static_no".

This commit also concludes the Multihost support in #4027.

Fixes #36
Closes #4027
2017-11-17 11:01:46 +01:00
..
content_directory_test.go all: Update import paths to gohugoio/hugo 2017-06-13 18:42:45 +02:00
dirs.go Add support for multiple staticDirs 2017-11-17 11:01:46 +01:00
dirs_test.go Add support for multiple staticDirs 2017-11-17 11:01:46 +01:00
file.go source: Normalize UniqueID between Windows & Linux 2017-08-09 19:35:40 +02:00
file_test.go source: Normalize UniqueID between Windows & Linux 2017-08-09 19:35:40 +02:00
filesystem.go Clean up lint in various packages 2017-09-29 16:23:16 +02:00
filesystem_test.go all: Refactor to nonglobal Viper, i18n etc. 2017-02-17 17:15:26 +01:00
filesystem_unix_test.go Add copyright header to that source files that don’t have one. 2015-12-10 15:19:38 -07:00
filesystem_windows_test.go Add copyright header to that source files that don’t have one. 2015-12-10 15:19:38 -07:00
inmemory.go Add some missing doc comments 2017-08-03 15:57:51 +02:00
lazy_file_reader.go source, tpl: Fix staticcheck complaints 2016-11-15 21:22:43 +01:00
lazy_file_reader_test.go Use the Afero source fs where relevant 2016-07-30 15:37:03 +02:00