hugo/helpers
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
..
baseURL.go Add some missing doc comments 2017-08-03 15:57:51 +02:00
baseURL_test.go all: Propagate baseURL error to the callers 2017-03-27 15:43:56 +02:00
content.go Change SummaryLength to be configurable (#3924) 2017-09-29 09:04:55 +02:00
content_renderer.go Use Chroma as new default syntax highlighter 2017-09-25 08:59:02 +02:00
content_renderer_test.go Use Chroma as new default syntax highlighter 2017-09-25 08:59:02 +02:00
content_test.go Change SummaryLength to be configurable (#3924) 2017-09-29 09:04:55 +02:00
emoji.go helpers: Use iterate operator by int in Emojify 2016-11-23 09:13:00 +01:00
emoji_test.go Run gofmt to get imports in line vs gohugoio/hugo 2017-06-13 19:12:10 +02:00
general.go Make the title case style guide configurable 2017-07-31 22:16:46 +02:00
general_test.go Make the title case style guide configurable 2017-07-31 22:16:46 +02:00
hugo.go releaser: Prepare repository for 0.31-DEV 2017-10-19 11:35:38 +00:00
hugo_test.go Set up Hugo release flow on CircleCI 2017-09-10 17:14:02 +02:00
language.go Add multilingual multihost support 2017-11-17 11:01:46 +01:00
language_test.go all: Refactor to nonglobal Viper, i18n etc. 2017-02-17 17:15:26 +01:00
path.go Add support for multiple staticDirs 2017-11-17 11:01:46 +01:00
path_test.go Add support for multiple staticDirs 2017-11-17 11:01:46 +01:00
pathspec.go Add support for multiple staticDirs 2017-11-17 11:01:46 +01:00
pathspec_test.go Add support for multiple staticDirs 2017-11-17 11:01:46 +01:00
pygments.go Add table linenos support for Chroma highlighter 2017-10-14 16:00:27 +02:00
pygments_test.go Add table linenos support for Chroma highlighter 2017-10-14 16:00:27 +02:00
testhelpers_test.go Use Chroma as new default syntax highlighter 2017-09-25 08:59:02 +02:00
url.go output: Rename HTMLType etc. to HTMLFormat 2017-03-27 15:43:56 +02:00
url_test.go all: Update import paths to gohugoio/hugo 2017-06-13 18:42:45 +02:00