hugo/commands
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
..
benchmark.go commands: Use paths from PathSpec for walker 2017-05-09 14:07:43 +02:00
check.go Remove ShowPlan 2016-11-23 16:35:49 +01:00
commandeer.go Add support for multiple staticDirs 2017-11-17 11:01:46 +01:00
convert.go Run gofmt to get imports in line vs gohugoio/hugo 2017-06-13 19:12:10 +02:00
env.go all: Use jww instead of fmt for printing 2016-11-22 22:06:48 +01:00
gen.go Add copyright header to that source files that don’t have one. 2015-12-10 15:19:38 -07:00
genautocomplete.go commands: Make first letter of flags' usage lowercase 2017-04-26 22:23:20 +02:00
genchromastyles.go Use Chroma as new default syntax highlighter 2017-09-25 08:59:02 +02:00
gendoc.go Run gofmt to get imports in line vs gohugoio/hugo 2017-06-13 19:12:10 +02:00
gendocshelper.go Revert "commands: Adjust docs path" 2017-07-06 10:34:04 +02:00
genman.go Run gofmt to get imports in line vs gohugoio/hugo 2017-06-13 19:12:10 +02:00
hugo.go Add support for multiple staticDirs 2017-11-17 11:01:46 +01:00
hugo_windows.go Move cobra.MousetrapHelpText to hugo_windows.go 2015-12-16 21:26:47 -07:00
import_jekyll.go hugo import jekyll support nested _posts directories 2017-07-01 10:15:22 +02:00
import_jekyll_test.go commands: Import Octopress image tag in Jekyll importer 2017-04-22 22:35:52 +02:00
limit_darwin.go commands: Adjust rlimit to 64000 2017-06-12 20:43:19 +02:00
limit_others.go Revert "commands: Remove the rlimit tweaking on macOS" 2017-06-12 20:35:19 +02:00
list.go Run gofmt to get imports in line vs gohugoio/hugo 2017-06-13 19:12:10 +02:00
list_config.go all: Refactor to nonglobal Viper, i18n etc. 2017-02-17 17:15:26 +01:00
new.go releaser: Prepare repository for 0.31-DEV 2017-10-19 11:35:38 +00:00
new_test.go all: Update import paths to gohugoio/hugo 2017-06-13 18:42:45 +02:00
release.go Set up Hugo release flow on CircleCI 2017-09-10 17:14:02 +02:00
server.go Add support for multiple staticDirs 2017-11-17 11:01:46 +01:00
server_test.go Add multilingual multihost support 2017-11-17 11:01:46 +01:00
static_syncer.go Add support for multiple staticDirs 2017-11-17 11:01:46 +01:00
undraft.go commands: Support human-readable YAML boolean values in undraft 2017-07-03 23:26:01 +02:00
undraft_test.go commands: Support human-readable YAML boolean values in undraft 2017-07-03 23:26:01 +02:00
version.go Run gofmt to get imports in line vs gohugoio/hugo 2017-06-13 19:12:10 +02:00