hugo/tpl
Bjørn Erik Pedersen 9f5a92078a
Add Hugo Modules
This commit implements Hugo Modules.

This is a broad subject, but some keywords include:

* A new `module` configuration section where you can import almost anything. You can configure both your own file mounts nd the file mounts of the modules you import. This is the new recommended way of configuring what you earlier put in `configDir`, `staticDir` etc. And it also allows you to mount folders in non-Hugo-projects, e.g. the `SCSS` folder in the Bootstrap GitHub project.
* A module consists of a set of mounts to the standard 7 component types in Hugo: `static`, `content`, `layouts`, `data`, `assets`, `i18n`, and `archetypes`. Yes, Theme Components can now include content, which should be very useful, especially in bigger multilingual projects.
* Modules not in your local file cache will be downloaded automatically and even "hot replaced" while the server is running.
* Hugo Modules supports and encourages semver versioned modules, and uses the minimal version selection algorithm to resolve versions.
* A new set of CLI commands are provided to manage all of this: `hugo mod init`,  `hugo mod get`,  `hugo mod graph`,  `hugo mod tidy`, and  `hugo mod vendor`.

All of the above is backed by Go Modules.

Fixes #5973
Fixes #5996
Fixes #6010
Fixes #5911
Fixes #5940
Fixes #6074
Fixes #6082
Fixes #6092
2019-07-24 09:35:53 +02:00
..
cast Add Hugo Modules 2019-07-24 09:35:53 +02:00
collections tpl/collections: Add Merge function 2019-07-15 20:47:35 +02:00
compare tpl/compare: Fix nil compare in eq/ne for interface values 2019-04-29 18:43:44 +02:00
crypto tpl: Add godoc packages comments 2018-11-30 08:56:30 +01:00
data Add Hugo Modules 2019-07-24 09:35:53 +02:00
encoding tpl: Add godoc packages comments 2018-11-30 08:56:30 +01:00
fmt tpl: Add godoc packages comments 2018-11-30 08:56:30 +01:00
hugo Add Hugo Modules 2019-07-24 09:35:53 +02:00
images tpl: Add godoc packages comments 2018-11-30 08:56:30 +01:00
inflect tpl: Add godoc packages comments 2018-11-30 08:56:30 +01:00
internal tpl: Fix test to pass with gccgo 2018-11-09 08:54:08 +01:00
lang tpl: Add godoc packages comments 2018-11-30 08:56:30 +01:00
math all: Apply staticcheck recommendations 2019-03-24 16:14:51 +01:00
os Add Hugo Modules 2019-07-24 09:35:53 +02:00
partials tpl: Allow the partial template func to return any type 2019-04-02 10:30:24 +02:00
path tpl: Add godoc packages comments 2018-11-30 08:56:30 +01:00
reflect tpl: Fix hugo package name and add godocs 2019-04-27 22:44:57 +02:00
resources resources: Move resource interfaces into its own package 2019-01-02 14:25:37 +01:00
safe tpl: Add godoc packages comments 2018-11-30 08:56:30 +01:00
site Add Hugo Modules 2019-07-24 09:35:53 +02:00
strings tpl: Add godoc packages comments 2018-11-30 08:56:30 +01:00
templates tpl: Add godoc packages comments 2018-11-30 08:56:30 +01:00
time tpl: Add godoc packages comments 2018-11-30 08:56:30 +01:00
tplimpl Add Hugo Modules 2019-07-24 09:35:53 +02:00
transform hugolib: Consider summary in front matter for .Summary 2019-04-05 19:11:04 +02:00
urls tpl: Add godoc packages comments 2018-11-30 08:56:30 +01:00
template.go Add Hugo Modules 2019-07-24 09:35:53 +02:00
template_info.go tpl: Allow the partial template func to return any type 2019-04-02 10:30:24 +02:00
template_test.go commands: Show server error info in browser 2018-10-16 22:10:56 +02:00