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 Fix hugo benchmark --renderToMemory 2018-01-06 10:37:04 +01:00
check.go Remove ShowPlan 2016-11-23 16:35:49 +01:00
commandeer.go Allow themes to define output formats, media types and params 2018-03-21 09:22:19 +01:00
convert.go Implement Page bundling and image handling 2017-12-27 18:44:47 +01: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 Allow themes to define output formats, media types and params 2018-03-21 09:22:19 +01:00
hugo_windows.go Move cobra.MousetrapHelpText to hugo_windows.go 2015-12-16 21:26:47 -07:00
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 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 Implement Page bundling and image handling 2017-12-27 18:44:47 +01:00
list_config.go Implement Page bundling and image handling 2017-12-27 18:44:47 +01:00
new.go releaser: Prepare repository for 0.38-DEV 2018-03-07 17:58:48 +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 Allow themes to define output formats, media types and params 2018-03-21 09:22:19 +01:00
server_test.go Add multilingual multihost support 2017-11-17 11:01:46 +01:00
static_syncer.go Implement Page bundling and image handling 2017-12-27 18:44:47 +01:00
version.go commands: Remove superflous BuildDate logic 2018-01-14 20:08:28 +01:00