hugo/commands
Bjørn Erik Pedersen 597e418cb0
Make Page an interface
The main motivation of this commit is to add a `page.Page` interface to replace the very file-oriented `hugolib.Page` struct.
This is all a preparation step for issue  #5074, "pages from other data sources".

But this also fixes a set of annoying limitations, especially related to custom output formats, and shortcodes.

Most notable changes:

* The inner content of shortcodes using the `{{%` as the outer-most delimiter will now be sent to the content renderer, e.g. Blackfriday.
  This means that any markdown will partake in the global ToC and footnote context etc.
* The Custom Output formats are now "fully virtualized". This removes many of the current limitations.
* The taxonomy list type now has a reference to the `Page` object.
  This improves the taxonomy template `.Title` situation and make common template constructs much simpler.

See #5074
Fixes #5763
Fixes #5758
Fixes #5090
Fixes #5204
Fixes #4695
Fixes #5607
Fixes #5707
Fixes #5719
Fixes #3113
Fixes #5706
Fixes #5767
Fixes #5723
Fixes #5769
Fixes #5770
Fixes #5771
Fixes #5759
Fixes #5776
Fixes #5777
Fixes #5778
2019-03-23 18:51:22 +01:00
..
check.go commands: Make the limit command work again 2018-04-11 09:50:19 +02:00
check_darwin.go commands: Make the limit command work again 2018-04-11 09:50:19 +02:00
commandeer.go Make Page an interface 2019-03-23 18:51:22 +01:00
commands.go Make Page an interface 2019-03-23 18:51:22 +01:00
commands_test.go Make Page an interface 2019-03-23 18:51:22 +01:00
config.go Add support for theme composition and inheritance 2018-06-10 23:55:20 +02:00
convert.go Make Page an interface 2019-03-23 18:51:22 +01:00
env.go commands: Make the hugo command non-global 2018-04-11 09:50:19 +02:00
gen.go commands: Make the hugo command non-global 2018-04-11 09:50:19 +02:00
genautocomplete.go commands: Make the hugo command non-global 2018-04-11 09:50:19 +02:00
genchromastyles.go commands: Make the hugo command non-global 2018-04-11 09:50:19 +02:00
gendoc.go commands: Add basic server test 2018-04-11 09:51:07 +02:00
gendocshelper.go commands: Make the hugo command non-global 2018-04-11 09:50:19 +02:00
genman.go Add tpl/site and tpl/hugo 2018-12-06 14:37:25 +01:00
helpers.go commands: Only show Ansi escape codes if in a terminal 2018-10-26 14:33:44 +02:00
hugo.go Make Page an interface 2019-03-23 18:51:22 +01:00
hugo_test.go commands: Add test for --configDir 2019-02-01 08:40:53 +01:00
hugo_windows.go Update hugo_windows.go 2018-07-22 00:09:46 +02:00
import_jekyll.go Make Page an interface 2019-03-23 18:51:22 +01:00
import_jekyll_test.go importer: fix jekyll import highlight options 2018-12-12 19:12:12 +01:00
limit_darwin.go commands: Move the commands related logic to its own file 2018-04-11 09:50:19 +02:00
limit_others.go commands: Make the limit command work again 2018-04-11 09:50:19 +02:00
list.go Make Page an interface 2019-03-23 18:51:22 +01:00
new.go Fix ignored --config flag with 'new' command 2018-11-18 19:09:28 +01:00
new_content_test.go Make Page an interface 2019-03-23 18:51:22 +01:00
new_site.go Convert the rest to new page parser code paths 2018-10-22 20:46:14 +02:00
new_theme.go Create missing head.html partial on new theme generation 2018-06-25 12:06:45 -06:00
release.go commands: Re-add the missing releaser command 2018-04-16 08:23:32 +02:00
release_noop.go commands: Re-add the missing releaser command 2018-04-16 08:23:32 +02:00
server.go Make Page an interface 2019-03-23 18:51:22 +01:00
server_errors.go commands: Fix recently broken error template 2018-11-03 16:55:45 +01:00
server_test.go commands: Add test for --configDir 2019-02-01 08:40:53 +01:00
static_syncer.go commands: Show server error info in browser 2018-10-16 22:10:56 +02:00
version.go Add tpl/site and tpl/hugo 2018-12-06 14:37:25 +01:00