hugo/helpers
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
..
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 Implement Page bundling and image handling 2017-12-27 18:44:47 +01:00
content_renderer.go helpers: Avoid unescape in highlight 2018-01-23 09:48:04 +01:00
content_renderer_test.go Reuse the BlackFriday instance when possible 2017-12-16 19:44:33 +01:00
content_test.go Implement Page bundling and image handling 2017-12-27 18:44:47 +01: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 hugolib: Extract date and slug from filename 2018-03-11 18:26:18 +01:00
general_test.go helpers: Avoid writing the last MD5 buff part twice 2017-12-28 22:52:27 +01:00
hugo.go releaser: Prepare repository for 0.38-DEV 2018-03-07 17:58:48 +00:00
hugo_test.go Properly handle -DEV suffix when comparing Hugo versions 2018-02-22 17:16:42 +01:00
language.go Fix language params handling 2018-01-30 18:53:07 +01:00
language_test.go Fix language params handling 2018-01-30 18:53:07 +01:00
path.go Allow themes to define output formats, media types and params 2018-03-21 09:22:19 +01:00
path_test.go Run gofmt -s with Go 1.10 2018-02-21 09:59:33 +01:00
pathspec.go Fix URLs for bundle resources in multihost mode 2018-01-06 10:29:13 +01:00
pathspec_test.go Fix URLs for bundle resources in multihost mode 2018-01-06 10:29:13 +01:00
processing_stats.go Run gofmt -s with Go 1.10 2018-02-21 09:59:33 +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 Fix URLs for bundle resources in multihost mode 2018-01-06 10:29:13 +01:00
url_test.go all: Update import paths to gohugoio/hugo 2017-06-13 18:42:45 +02:00