hugo/resources/page
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
..
page_generate resources/page: Fix .RSSLinke deprecation message 2019-04-09 16:47:29 +02:00
pagemeta Add Hugo Modules 2019-07-24 09:35:53 +02:00
page.go resources/page: Add missing GitInfo to Page 2019-04-05 16:52:37 +02:00
page_author.go Remove references to Google+ 2019-05-26 19:24:45 +02:00
page_data.go
page_data_test.go
page_kinds.go
page_kinds_test.go Make Page an interface 2019-03-23 18:51:22 +01:00
page_marshaljson.autogen.go resources/page: Regenerate JSON wrapper 2019-04-05 16:58:52 +02:00
page_nop.go Add Hugo Modules 2019-07-24 09:35:53 +02:00
page_outputformat.go
page_paths.go hugolib: Fix bundle path when slug is set 2019-06-09 16:55:08 +02:00
page_paths_test.go
page_wrappers.autogen.go Add Hugo Modules 2019-07-24 09:35:53 +02:00
pagegroup.go resources/page: Implement compare.ProbablyEqer for the core slices 2019-04-02 16:10:13 +02:00
pagegroup_test.go
pages.go tpl/collections: Fix slice type handling in sort 2019-06-10 08:32:44 +02:00
pages_cache.go
pages_cache_test.go
pages_language_merge.go
pages_prev_next.go
pages_prev_next_test.go
pages_related.go
pages_related_test.go
pages_sort.go Avoid nilpointer on no File on Page 2019-03-26 10:20:40 +01:00
pages_sort_test.go
pages_test.go tpl/collections: Fix slice type handling in sort 2019-06-10 08:32:44 +02:00
pagination.go
pagination_test.go
permalinks.go Add Hugo Modules 2019-07-24 09:35:53 +02:00
permalinks_test.go
site.go Add Hugo Modules 2019-07-24 09:35:53 +02:00
testhelpers_test.go Add Hugo Modules 2019-07-24 09:35:53 +02:00
weighted.go Fix WeightedPages in union etc. 2019-04-13 18:52:38 +02:00
zero_file.autogen.go Add Hugo Modules 2019-07-24 09:35:53 +02:00