hugo/commands
Bjørn Erik Pedersen e9c7b6205f
Allow themes to define output formats, media types and params
This allows a `config.toml` (or `yaml`, ´yml`, or `json`)  in the theme to set:

1) `params` (but cannot override params in project. Will also get its own "namespace", i.e. `{{ .Site.Params.mytheme.my_param }}` will be the same as `{{ .Site.Params.my_param }}` providing that the main project does not define a param with that key.
2) `menu` -- but cannot redefine/add menus in the project. Must create its own menus with its own identifiers.
3) `languages` -- only `params` and `menu`. Same rules as above.
4) **new** `outputFormats`
5) **new** `mediaTypes`

This should help with the "theme portability" issue and people having to copy and paste lots of setting into their projects.

Fixes #4490
2018-03-21 09:22:19 +01:00
..
benchmark.go
check.go
commandeer.go Allow themes to define output formats, media types and params 2018-03-21 09:22:19 +01:00
convert.go
env.go
gen.go
genautocomplete.go
genchromastyles.go
gendoc.go
gendocshelper.go
genman.go
hugo.go Allow themes to define output formats, media types and params 2018-03-21 09:22:19 +01:00
hugo_windows.go
import_jekyll.go Only set 'url' if permalink in metadata and remove duplicate confirm msg 2018-01-28 11:24:31 +01:00
import_jekyll_test.go Only set 'url' if permalink in metadata and remove duplicate confirm msg 2018-01-28 11:24:31 +01:00
limit_darwin.go
limit_others.go
list.go
list_config.go
new.go releaser: Prepare repository for 0.38-DEV 2018-03-07 17:58:48 +00:00
new_test.go
release.go
server.go Allow themes to define output formats, media types and params 2018-03-21 09:22:19 +01:00
server_test.go
static_syncer.go
version.go